I have 2 questions.
1) how does a boolean query implemented, for example if I have a boolean
query of (term1 or term2) does the boolean performs scoring on all the
documents in the index in order to answare the query, or it just goes over
all the documents that contain term1 or term2.
this question is very important for very large indexes, where the number of
hits may be very small, but going over all the documents is very expensive.

2) when lucene indexes documents, does it stores the index sorted by
frequancies of a term in a document? or more specifically, does IndexReader
method termDocs return a TermDocs that is sorted or do I have to go over all
the docs to get the ones that the term occured more frequently?

tal.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to