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/03/10 17:53:12 UTC

[jira] [Updated] (LUCENE-4821) AnalyzingSuggester should use end() offset to decide if last token ended or not

     [ https://issues.apache.org/jira/browse/LUCENE-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-4821:
---------------------------------------

    Attachment: LUCENE-4821.patch

Patch.
                
> AnalyzingSuggester should use end() offset to decide if last token ended or not
> -------------------------------------------------------------------------------
>
>                 Key: LUCENE-4821
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4821
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/spellchecker
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 5.0, 4.3
>
>         Attachments: LUCENE-4821.patch
>
>
> For example, today if you index "i love lucy" and "isla de muerta", and then you ask for suggestions for "i" and for "i " (space after the i) you'll get the same results.
> But if we use the ending offset, we can determine (I think?) that there were non-token characters after the last token, so that "i " would only suggest "i love lucy".

--
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