lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (Updated) (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3475) ShingleFilter should handle positionIncrement of zero, e.g. synonyms
Date Tue, 20 Mar 2012 14:55:37 GMT


Michael McCandless updated LUCENE-3475:

    Labels: gsoc2012 lucene-gsoc-12  (was: )

I think this is important, now that we have "graph" analyzers (like Kuromoji).

So ShingleFilter should pay attention to posInc as well as posLength...
> ShingleFilter should handle positionIncrement of zero, e.g. synonyms
> --------------------------------------------------------------------
>                 Key: LUCENE-3475
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: modules/analysis
>    Affects Versions: 3.4
>            Reporter: Cameron
>            Priority: Minor
>              Labels: gsoc2012, lucene-gsoc-12
> ShingleFilter is creating shingles for a single term that has been expanded by synonyms
when it shouldn't. The position increment is 0.
> As an example, I have an Analyzer with a SynonymFilter followed by a ShingleFilter. Assuming
car and auto are synonyms, the SynonymFilter produces two tokens and position 1: car, auto.
The ShingleFilter is then producing 3 tokens, when there should only be two: car, car auto,
auto. This behavior seems incorrect.

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


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

View raw message