lucene-java-user mailing list archives

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

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message