lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sol myr <>
Subject "AND" Query "under the hood" ?
Date Tue, 25 Oct 2011 12:18:13 GMT

Could I please ask another question regarding Lucene "under the hood" / performance.

I wondered how "AND" queries are implemented?
Say we query for "+hello +world".
Would Lucene simply find 2 lists of documents ("documents containing HELLO",  and "documents
containing WORLD"), 

and then intersect them (yielding documents with both words)?
Or does Lucene do smarter tricks? 

And in regards to performance, is there any importance to query order ( "+hello +world" 
as opposed to "+world +hello")?

Thanks :)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message