You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2018/01/11 21:30:04 UTC

[jira] [Updated] (SOLR-6479) ExtendedDismax does not recognize operators followed by a parenthesis without space

     [ https://issues.apache.org/jira/browse/SOLR-6479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassandra Targett updated SOLR-6479:
------------------------------------
    Issue Type: Improvement  (was: Bug)

> ExtendedDismax does not recognize operators followed by a parenthesis without space
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-6479
>                 URL: https://issues.apache.org/jira/browse/SOLR-6479
>             Project: Solr
>          Issue Type: Improvement
>          Components: query parsers
>    Affects Versions: 4.9
>         Environment: Java 7
> Linux
>            Reporter: Pierre Salagnac
>            Priority: Minor
>              Labels: patch
>         Attachments: SOLR-6479.patch
>
>
> Before doing through the syntax parser, edismax does a pre-analysis of the query to applies some parameters, like whether lower case operators are recognized.
> This basic analysis in {{splitIntoClauses()}} pseudo-tokenizes the query string on whitespaces. An operator directly followed by a parenthesis is not recognized because only one token is created.
> {code}
> foo AND (bar) -> foo ; AND ; (bar)
> foo AND(bar)  -> foo ; AND(bar)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org