On Sat, Mar 16, 2013 at 7:47 AM, Bratislav Stojanovic <bratislav1...@gmail.com> wrote: > 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)?
build() takes a TermFreqPayload iterator, which iterates over the weight/input text/payload that you provide. Have a look at AnalyzingSuggesterTest, eg testKeywordWithPayloads. Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org