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 Sat, 16 Mar 2013 19:54:37 GMT
On Sat, Mar 16, 2013 at 7:47 AM, Bratislav Stojanovic
<bratislav1983@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message