lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bratislav Stojanovic <bratislav1...@gmail.com>
Subject Re: Getting documents from suggestions
Date Sat, 16 Mar 2013 11:47:14 GMT
Hey Mike,

Is this what I should be looking at?
https://builds.apache.org/job/Lucene-Artifacts-trunk/javadoc/suggest/org/apache/lucene/search/suggest/analyzing/package-summary.html

Not sure how to call build(), i.e. what to pass as a parameter...Any
examples?
Where to specify my payload (which is "id" long field from the index)?

Thanx in advance.

On Thu, Mar 14, 2013 at 10:47 PM, Michael McCandless <
lucene@mikemccandless.com> wrote:

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


-- 
Bratislav Stojanovic, M.Sc.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message