Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4981

Deprecate PositionFilter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.4
    • None
    • None
    • New

    Description

      According to the documentation (http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PositionFilterFactory), PositionFilter is mainly useful to make query parsers generate boolean queries instead of phrase queries although this problem can be solved at query parsing level instead of analysis level (eg. using QueryParser.setAutoGeneratePhraseQueries).

      So given that PositionFilter corrupts token graphs (see TestRandomChains), I propose to deprecate it.

      Attachments

        1. LUCENE-4981.patch
          7 kB
          Adrien Grand
        2. LUCENE-4981.patch
          6 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: