lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otis Gospodnetic (JIRA)" <>
Subject [jira] Resolved: (LUCENE-796) Change Visibility of fields[] in MultiFieldQueryParser
Date Thu, 05 Apr 2007 02:08:32 GMT


Otis Gospodnetic resolved LUCENE-796.

    Resolution: Fixed

Makes sense.  Thanks Steve, applied.  I left those 2 private attributes of MFQP as private
until somebody asks for them to be protected.

> Change Visibility of fields[] in MultiFieldQueryParser
> ------------------------------------------------------
>                 Key: LUCENE-796
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: QueryParser
>    Affects Versions: 2.1
>         Environment: not important
>            Reporter: Oliver Hummel
>             Fix For: 2.2
>         Attachments: LUCENE-796.txt
> In MultiFieldQueryParser the two methods 
>   protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws
>   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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message