You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2017/11/10 14:37:00 UTC
[jira] [Created] (OAK-6926) Lucene: contains "a -b" with path
restriction ignored "a"
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)