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 < luc...@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 > <bratislav1...@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-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Bratislav Stojanovic, M.Sc.