You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomás Fernández Löbbe (JIRA)" <ji...@apache.org> on 2018/03/28 03:39:00 UTC

[jira] [Assigned] (SOLR-12035) ExtendedDismaxQParser fails to include charfilters in nostopanalyzer

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

Tomás Fernández Löbbe reassigned SOLR-12035:
--------------------------------------------

    Assignee: Tomás Fernández Löbbe

> ExtendedDismaxQParser fails to include charfilters in nostopanalyzer
> --------------------------------------------------------------------
>
>                 Key: SOLR-12035
>                 URL: https://issues.apache.org/jira/browse/SOLR-12035
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: query parsers
>    Affects Versions: master (8.0)
>            Reporter: Tim Allison
>            Assignee: Tomás Fernández Löbbe
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In some circumstances, the ExtendedDismaxQParser tries to remove stop filters from the TokenizerChain.  When building the new analyzer without the stop filters, the charfilters from the original TokenizerChain are not copied over.
> The fix is trivial.
> {noformat}
> -      TokenizerChain newa = new TokenizerChain(tcq.getTokenizerFactory(), newtf);
> +     TokenizerChain newa = new TokenizerChain(tcq.getCharFilterFactories(), tcq.getTokenizerFactory(), newtf);
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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