How can I search on a list of values using Solr/Lucene?

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-04-10T13:48:24Z Indexed on 2010/04/10 13:53 UTC
Read the original article Hit count: 259

Filed under:
|

Given the following query:

(field:value1 OR field:value2 OR field:value3 OR ... OR field:value50)

Can this be broken down into something less verbose? Basically I have hundreds of category IDs, and I need to search for items under large groups of category IDs (20-50 at a time). In MySQL, I'd just use field IN(value1, value2, value3) rather than (field = value1 OR field = value2 etc...).

Is there a simpler way for Solr/Lucene?

© Stack Overflow or respective owner

Related posts about solr

Related posts about lucene