[ https://issues.apache.org/jira/browse/OAK-6926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella closed OAK-6926. --------------------------------- Bulk close 1.7.12 > 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 > Assignee: Thomas Mueller > Fix For: 1.7.12, 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)