[infinispan-issues] [JBoss JIRA] (ISPN-6588) Query DSL like queries should only accept % and _ as the wildcards

Adrian Nistor (JIRA) issues at jboss.org
Wed May 4 08:33:00 EDT 2016


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

Work on ISPN-6588 started by Adrian Nistor.
-------------------------------------------
> Query DSL like queries should only accept % and _ as the wildcards
> ------------------------------------------------------------------
>
>                 Key: ISPN-6588
>                 URL: https://issues.jboss.org/browse/ISPN-6588
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Embedded Querying, Remote Querying
>            Reporter: Adrian Nistor
>            Assignee: Adrian Nistor
>             Fix For: 9.0.0.Alpha2, 8.2.2.Final
>
>
> The official wildcards are % and _. But users can mistakenly use * and ? and those will usually work too. This works because the * and ? are valid wildcards in the underlying Lucene query language. But this breaks if the query is supposed to be run un-indexed for whatever reason.
> To fix this we need to escape * and ? from user's input so they are no longer internally handled by Lucene as wildcards. These chars should cause an exact match instead. The actual recognized wildcards should be only % and _.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list