lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Does Lucene fail fast on boolean queries?
Date Thu, 21 May 2009 14:29:57 GMT
Yes.

As soon as Lucene sees that the Name docID iteration has ended, the
search will break.

Mike

On Thu, May 21, 2009 at 8:44 AM, Joel Halbert <joel@su3analytics.com> wrote:
> Hi,
>
> When Lucene performs a Boolean query, say:
>
> Field Name = Male
> AND
> Field Age = 30
>
> assuming the resultant docs for each portion of the query were:
>
> Matching docs for:  Name = 1,2
> Matching docs for:  Age = 1,2,5,10
>
> Will Lucene stop searching for documents matching the Age term once it
> has found documents 1 and 2 ?
> i.e. since 5 and 10 will not be used will it stop searching at document
> number 2 ?
>
> Thx,
> Joel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message