Tim Allison created SOLR-12035:
----------------------------------

             Summary: 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)
            Reporter: Tim Allison


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to