Long Boolean OR query's performance
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   BG_San
Posted On:   Friday, July 9, 2004 05:49 PM

For one local inventory search engine project, I have to construct one long boolean OR query for one zip code field, with the number of zip codes in range from tens to hundreds of values. For example "zip:91008 OR zip:34344 OR zip:34433 ... "

Aside from the awareness of possible too many clauses (BooleanQuery.TooManyClauses exception), I am concerned of which way to contruct the best performing query(ies) in Lucene: 1) one super-long query of many boolean OR conditions 2) a concatenation of results from broken-up small sets of boolean OR conditions?

About | Sitemap | Contact