Hi,
After adding fields, those fields are analyzed and this is the step you
are looking for.
The payloads are stored on each Token, so you need your own Analyzer to
do so.
just use reusableToken.setPayload(myPayLoad) somewhere, look at already
existing analyzers.
In our case we use TokenStream and TokenFilters cause we have
pre-analyzed Tokens.
It's very simple to use, the old api is self-explanatory, but this API
seems in big move and methods are now deprecated and I couldn't
understand the new API.
David.
Todd Benge a écrit :
Hi,
I've been reading about payloads because I think we may be able to use
them to solve a problem we're having involving sorts.
>From the API, Payloads are set on Token classes. During indexing,
Fields are added to Documents so I think I'm missing the connection of
how the payloads are set into the index.
Any help is appreciated.
Thanks,
Todd
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org