You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2010/11/15 02:24:13 UTC

[jira] Issue Comment Edited: (LUCENE-2757) Refactor RewriteMethods out of MultiTermQuery

    [ https://issues.apache.org/jira/browse/LUCENE-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931950#action_12931950 ] 

Uwe Schindler edited comment on LUCENE-2757 at 11/14/10 8:24 PM:
-----------------------------------------------------------------

Here the merge patch for 3.x

The merge had a difficulty:
- MTQ has no fixed field name (as in 3.x MTQ can even rewrite to a query with terms from different fields). So SpanQuery.getField() cannot simply be delegated in the wrapper. A hack was added that uses reflection to find the field name from the wrapped MTQ.

The other parts were straightforward:
- merge patch, for MTQ conflict choose "overwrite with their's", keep a backup of old MTQ
- copypaste all code from old MTQ rewrite modes to the new separate file with rewrite modes.
- remove docFreq parameter from collect() method.

      was (Author: thetaphi):
    Here the merge patch for 3.x
  
> Refactor RewriteMethods out of MultiTermQuery
> ---------------------------------------------
>
>                 Key: LUCENE-2757
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2757
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 3.1, 4.0
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2757-branch_3x.patch, LUCENE-2757-refactor1.patch, LUCENE-2757-refactor1.patch, LUCENE-2757.patch
>
>
> Policeman work :-) - as usual

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org