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

Change Visibility of fields[] in MultiFieldQueryParser

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: core/queryparser
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: