lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Getting documents from suggestions
Date Thu, 14 Mar 2013 21:47:34 GMT
If you are using AnalyzingSuggester or FuzzySuggester than you can use
its new payloads feature to store an arbitrary byte[] with each
suggestion:

    https://issues.apache.org/jira/browse/LUCENE-4820

But this won't help if you're using spell checker ...

Mike McCandless

http://blog.mikemccandless.com

On Thu, Mar 14, 2013 at 5:36 PM, Bratislav Stojanovic
<bratislav1983@gmail.com> wrote:
> Hi all,
>
> How can I filter suggestions based on some value from the indexed field?
> I have a stored 'id' field in my index and I want to use that to examine
> documents
> where the suggestion was found, but how to get Document from suggestion?
> SpellChecker class only returns array of strings.
>
> What classes should I use? Please help.
>
> Thanx in advance.
>
> --
> Bratislav Stojanovic, M.Sc.

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


Mime
View raw message