[jira] Commented: (LUCENE-396) [PATCH] Add position increment back into StopFilter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] Commented: (LUCENE-396) [PATCH] Add position increment back into StopFilter

JIRA jira@apache.org
    [ http://issues.apache.org/jira/browse/LUCENE-396?page=comments#action_12378067 ]

Yonik Seeley commented on LUCENE-396:

The patch is also incorrect in that token positions are not preserved in the cases where positionIncrement!=1

> [PATCH] Add position increment back into StopFilter
> ---------------------------------------------------
>          Key: LUCENE-396
>          URL: http://issues.apache.org/jira/browse/LUCENE-396
>      Project: Lucene - Java
>         Type: Bug

>   Components: Analysis
>     Versions: 1.4
>  Environment: Operating System: other
> Platform: All
>     Reporter: Mike Barry
>     Assignee: Lucene Developers
>  Attachments: StopFilter.patch, TestStopFilter.java, TestStopFilter.java
> Currently, if you index a document that contains "climate of change", then a
> phrase query of "climate change" will return that document because StopFilter
> does not increment a token's position when skipping stopwords. A patch was
> initially applied to StopFilter in Nov of 2003 but then reverted in Dec of 2003
> due to conflicts. PhraseQuery has since been modified and extend and the patch
> can be re-applied.

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

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]