On Friday 18 January 2008 17:52:27 Thibaut Britz wrote: > > Hi, > ... > > Another thing I noticed is that we append a lot of queries, so we have a lot > of duplicate phrases like (A and B or C) and ... and (A and B or C) (more > nested than that). Is lucene doing any internal query optimization (like > karnaugh maps) by removing the last (A and B or C), as it is not needed, or > do I have to do that myself?
Query optimization like karnaugh maps is not available in Lucene. For each level of 'and' and 'or' in the (rewritten) query, as well as for all terms in the query, a separate scorer will be used during query search. The query rewrite could in principle do this, but it might affect the score values. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]