Peter Bloem wrote:
[...]
"+(A B) C D E"
[...]
In other words, Lucene considers all documents that have both A and B, and ranks them higher if they also have C D or E.

Hello Peter,

for my understanding "+(A B) C D E" means at least one of the terms "A" or "B" must be contained and the terms "C", "D", and "E" are optional. The following documents d are hits:
d(A, B)
d(A)
d(B)
d(A, C)
...
Documents without "A" and "B" are not a hit.

To have both terms "A" and "B" in a document the query should be: "(+A +B) C D E" or "+A +B C D E".

Sören



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

Reply via email to