Saturday, July 17, 2004 01:26 PM
For a project of search engine for looking over inventory within local region, where each area is identified with their own zip codes. For inventory in some region, the range of area would be places in a list of tens to hundreds of zip codes within certain radius at a central point. Then the boolean query I need to contruct would include many clauses like zipcode:22450 OR zipcode:13900 OR zipcode:33311 ...
While I'm aware there may be BooleanQuery.TooManyClauses exception problem, I wonder which way to construct the query(ies) would get better performance from Lucene:
1. One single long query with many boolean OR conditions
2. Broken down into shorter queries, for example 100 broken down into 5 x 20 conditions each
Re: How does Lucene perform on a very long Boolean query with many conditions?
Tuesday, July 20, 2004 06:33 AM