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

Change Visibility of fields[] in MultiFieldQueryParser

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • core/queryparser
    • None
    • not important

    Description

      In MultiFieldQueryParser the two methods

      protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException
      protected Query getWildcardQuery(String field, String termStr) throws ParseException

      are intended to be overwritten if one would like to avoid fuzzy and wildcard queries. However, the String[] fields attribute of this class is private and hence it is not accessible in subclasses of MFQParser. If you just change it to protected this issue should be solved.

      Attachments

        1. LUCENE-796.txt
          2 kB
          Steven Parkes

        Activity

          People

            Unassigned Unassigned
            ohummel Oliver Hummel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: