lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4533) if you pass dups (same surface form) to AnalyzingSuggester it can fail to return enough results
Date Mon, 05 Nov 2012 17:56:13 GMT

     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message