[infinispan-issues] [JBoss JIRA] (ISPN-7982) Ickle purely negative fulltext subqueries cause empty results

Tristan Tarrant (Jira) issues at jboss.org
Sun Oct 27 16:09:20 EDT 2019


     [ https://issues.jboss.org/browse/ISPN-7982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-7982:
----------------------------------
    Fix Version/s: 10.0.1.Final
                       (was: 10.0.0.Final)


> Ickle purely negative fulltext subqueries cause empty results
> -------------------------------------------------------------
>
>                 Key: ISPN-7982
>                 URL: https://issues.jboss.org/browse/ISPN-7982
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Embedded Querying
>    Affects Versions: 9.0.0.Final
>            Reporter: Gustavo Fernandes
>            Assignee: Nistor Adrian
>            Priority: Major
>             Fix For: 10.0.1.Final
>
>
> When using parethesis in an Ickle full text predicate, it can generate subqueries that are pure negative, e.g.
> {{from IspnEvent where (tags : ('tagA' and (not 'a0')))}}
> In Lucene, the query 
> {{+tags:taga +(-tags:a0)}}
> is different from 
> {{+tags:taga -tags:a0}}
> The latter works as expected, but the former brings empty results since Lucene does no support purely negative subqueries. In order for the former query to work, it needs to add all documents as another term to the subquery, for e.g. {{+tags:taga +(\*:\* -tags:a0)}}.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list