lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Updated] (LUCENE-1245) MultiFieldQueryParser is not friendly for overriding getFieldQuery(String,String,int)
Date Thu, 28 Feb 2013 13:05:17 GMT


Jan Høydahl updated LUCENE-1245:

This issue has been inactive for more than 4 years. Please close if it's no longer relevant/needed,
or bring it up to date if you intend to work on it. SPRING_CLEANING_2013
> MultiFieldQueryParser is not friendly for overriding getFieldQuery(String,String,int)
> -------------------------------------------------------------------------------------
>                 Key: LUCENE-1245
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/queryparser
>    Affects Versions: 2.3.2
>            Reporter: Trejkaz
>         Attachments: multifield.patch
> LUCENE-1213 fixed an issue in MultiFieldQueryParser where the slop parameter wasn't being
properly applied.  Problem is, the fix which eventually got committed is calling super.getFieldQuery(String,String),
bypassing any possibility of customising the query behaviour.
> This should be relatively simply fixable by modifying getFieldQuery(String,String,int)
to, if field is null, recursively call getFieldQuery(String,String,int) instead of setting
the slop itself.  This gives subclasses which override either getFieldQuery method a chance
to do something different.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

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

View raw message