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-4820) Add optional payload to AnalyzingSuggester
Date Sun, 10 Mar 2013 13:11:12 GMT

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

Michael McCandless updated LUCENE-4820:
---------------------------------------

    Attachment: LUCENE-4820.patch

Initial patch, with tests (passing).

I created a separate TermFreqPayloadIterator extending
TermFreqIterator, which you pass to AnalyzingSuggester.build, and then
added payload to LookupResult.

                
> Add optional payload to AnalyzingSuggester
> ------------------------------------------
>
>                 Key: LUCENE-4820
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4820
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/spellchecker
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 5.0, 4.3
>
>         Attachments: LUCENE-4820.patch
>
>
> It's useful to be able to store custom data (eg maybe a primary key or
> a URL or something) with each suggestion, so that the UI can do things
> like render an image along with each suggestion, or direct to a
> specific URL if the user clicks that suggestion, etc.

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