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

Michael McCandless updated LUCENE-4533:
---------------------------------------

    Attachment: LUCENE-4533.patch

Patch w/ fix ... I just dedup surface forms with a HashSet.  The set is cleared 
whenever analyzed form changes so worst case is it holds 256 keys ...
                
> if you pass dups (same surface form) to AnalyzingSuggester it can fail to 
> return enough results
> -----------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4533
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4533
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 4.1, 5.0
>
>         Attachments: LUCENE-4533.patch, LUCENE-4533.patch
>
>
> The problem is (again) the queue pruning we do.
> I think we should de-dup the user's input (keeping highest weight for each 
> surface form) before adding to the FST.

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to