Solr
  1. Solr
  2. SOLR-5490

Have Prefix Queries Use a MultiTermAnalyzer in SimpleQParser.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      I would like to make a minor change to the SimpleQParser to use a MultiTermAnalyzer on prefix queries from TextFields. This way terms can be modified to be lower-cased or have accents removed from the TextField's analysis chain before creating the prefix query.

      1. SOLR-5490.patch
        6 kB
        Jack Conradson

        Activity

        Hide
        Jack Conradson added a comment -

        I have attached a patch.

        Show
        Jack Conradson added a comment - I have attached a patch.
        Hide
        ASF subversion and git services added a comment -

        Commit 1544837 from Robert Muir in branch 'dev/trunk'
        [ https://svn.apache.org/r1544837 ]

        SOLR-5490: SimpleQParser uses multiterm analysis chain for prefixes

        Show
        ASF subversion and git services added a comment - Commit 1544837 from Robert Muir in branch 'dev/trunk' [ https://svn.apache.org/r1544837 ] SOLR-5490 : SimpleQParser uses multiterm analysis chain for prefixes
        Hide
        ASF subversion and git services added a comment -

        Commit 1544841 from Robert Muir in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1544841 ]

        SOLR-5490: SimpleQParser uses multiterm analysis chain for prefixes

        Show
        ASF subversion and git services added a comment - Commit 1544841 from Robert Muir in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1544841 ] SOLR-5490 : SimpleQParser uses multiterm analysis chain for prefixes
        Hide
        Robert Muir added a comment -

        Thanks Jack!

        Show
        Robert Muir added a comment - Thanks Jack!

          People

          • Assignee:
            Unassigned
            Reporter:
            Jack Conradson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development