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

ExtendedDismaxQParser fails to include charfilters in nostopanalyzer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.0
    • 7.4, 8.0
    • query parsers
    • 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

              tflobbe Tomas Eduardo Fernandez Lobbe
              tallison 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