Solr
  1. Solr
  2. SOLR-3017

Allow edismax stopword filter factory implementation to be specified

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      Currently, the edismax query parser assumes that stopword filtering is being done by StopFilter: the removal of the stop filter is performed by looking for an instance of 'StopFilterFactory' (hard-coded) within the associated field's analysis chain.

      We'd like to be able to use our own stop filters whilst keeping the edismax stopword removal goodness. The supplied patch allows the stopword filter factory class to be supplied as a param, "stopwordFilterClassName". If no value is given, the default (StopFilterFactory) is used.

      Another option I looked into was to extend StopFilterFactory to create our own filter. Unfortunately, StopFilterFactory's 'create' method returns StopFilter, not TokenStream. StopFilter is also final.

      1. SOLR-3017-without-guava-alternative.patch
        45 kB
        Michael Dodsworth
      2. SOLR-3017.patch
        45 kB
        Michael Dodsworth
      3. SOLR-3017.patch
        11 kB
        Erick Erickson
      4. edismax_stop_filter_factory.patch
        14 kB
        Michael Dodsworth

        Issue Links

          Activity

          Michael Dodsworth created issue -
          Michael Dodsworth made changes -
          Field Original Value New Value
          Attachment edismax_stop_filter_factory.patch [ 12509936 ]
          Michael Dodsworth made changes -
          Link This issue relates to SOLR-1553 [ SOLR-1553 ]
          Michael Dodsworth made changes -
          Attachment SOLR-3017.patch [ 12509949 ]
          Michael Dodsworth made changes -
          Link This issue relates to SOLR-2368 [ SOLR-2368 ]
          Michael Dodsworth made changes -
          Affects Version/s 4.0 [ 12314992 ]
          Michael Dodsworth made changes -
          Erick Erickson made changes -
          Attachment SOLR-3017.patch [ 12513155 ]
          Michael Dodsworth made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Michael Dodsworth
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development