Thomas Mueller created OAK-6926: ----------------------------------- Summary: Lucene: contains "a -b" with path restriction ignored "a" Key: OAK-6926 URL: https://issues.apache.org/jira/browse/OAK-6926 Project: Jackrabbit Oak Issue Type: Bug Components: lucene Reporter: Thomas Mueller Fix For: 1.8
The following query is converted correctly: {noformat} /jcr:root//*[jcr:contains(., 'apple - pear')] +:fulltext:apple -:fulltext:pear BooleanQuery(BooleanClause(+,TermQuery(apple)), BooleanClause(-,TermQuery(pear))) {noformat} However with path restriction, "apple" is lost: {noformat} /jcr:root/content//*[jcr:contains(., 'apple - pear')] -:fulltext:pear +:ancestors:/content BooleanQuery(BooleanClause(-,TermQuery(pear)), BooleanClause(+,TermQuery(:ancestors:/content))) {noformat} This is related to OAK-3371. -- This message was sent by Atlassian JIRA (v6.4.14#64029)