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