Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12035

ExtendedDismaxQParser fails to include charfilters in nostopanalyzer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 7.4, 8.0
    • Component/s: query parsers
    • Labels:
      None

      Description

      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.

      -      TokenizerChain newa = new TokenizerChain(tcq.getTokenizerFactory(), newtf);
      +     TokenizerChain newa = new TokenizerChain(tcq.getCharFilterFactories(), tcq.getTokenizerFactory(), newtf);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tomasflobbe Tomás Fernández Löbbe
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m