You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2013/08/19 19:05:47 UTC

[jira] [Created] (LUCENE-5180) ShingleFilter should make shingles from trailing holes

Michael McCandless created LUCENE-5180:
------------------------------------------

             Summary: ShingleFilter should make shingles from trailing holes
                 Key: LUCENE-5180
                 URL: https://issues.apache.org/jira/browse/LUCENE-5180
             Project: Lucene - Core
          Issue Type: Improvement
          Components: modules/analysis
            Reporter: Michael McCandless
             Fix For: 5.0, 4.5


When ShingleFilter hits a hole, it uses _ as the token, e.g. bigrams for "the dog barked", if you have a StopFilter removing the, would be: "_ dog", "dog barked".

But if the input ends with a stopword, e.g. "wizard of", ShingleFilter fails to produce "wizard _" due to LUCENE-3849 ... once we fix that I think we should fix ShingleFilter to make shingles for trailing holes too ...

--
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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org