lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dragon Fly <>
Subject Wildcard query ...
Date Wed, 08 Oct 2008 12:44:56 GMT
Let's say my index has two fields (Type and Description).  Type is either 0 or 1 and Description
is a string (up to 250 characters).  I'd like to execute the following search:

    +Description:Honda* +Type:0

Would the query run faster if I specify the Type first:

    +Type:0 +Description:Honda*

I imagine it's much faster for Lucene to evaluate the Type clause than the Description clause.
 Is Lucene smart enough to filter out the Type 1 documents first before evaluating the more
expensive wildcard clause? I'd like to understand (at a high level) how Lucene would process
the query above.  Thank you.

Get more out of the Web. Learn 10 hidden secrets of Windows Live.!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message