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

Pierre Salagnac updated SOLR-6479:
----------------------------------
    Attachment: SOLR-6479.patch

Proposing a patch for this. All feedback welcome.

> 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: Bug
>          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.3.4#6332)

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

Reply via email to