Hi all, We are using Jackrabbit 1.6.17 in our system and we enabled the Lucene indexes for search for numbers of properties in our nodes. That works for us but one scenario is unclear to us.
Let's assume the following: * our node type is *dc:document* * it has two fields: title, description (both have properly configured lucene indexes) I have three documents: * *doc1 * *title*: one *description*: two * *doc2* *title*: one two *description*: three * *doc3* *title*: one two three *description*: null Now I perform given query: *1.* This is working correctly and checks all given words in all indexed properties, which is correct. SELECT * FROM [dc:document] where contains(*, 'one three') *Result* -> doc2, doc3 2. This is what we don't understand. I would expect that only doc1 is returned. As in all the other "three" appears. However doc2 is also returned. It appears that negation is working only for single property, and not for all the indexed properties... It surprises me that in scenario #1 it searches across all properties but when negating it searches only in single property... Is this a defect or that is desired behaviour SELECT * FROM [dc:document] where contains(*, 'one -three') *Result* -> doc1, doc2 Thanks in advance, Dawid
