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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2017/12/08 14:24:12 UTC

[jira] [Closed] (OAK-6926) Lucene: contains "a -b" with path restriction ignored "a"

     [ 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)