You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Fabiano Nunes <fa...@nunes.me> on 2011/02/28 18:49:31 UTC
Solr Payloads retrieval
Hi!
I'm studying a migration from "pure" Lucene to Solr, but I need a crucial
feature:
Is it posible to retrieve payloads from Solr?
I'm storing the coordinates from each term in its payload to highlight
images in client-side.
Thank you,
Re: Solr Payloads retrieval
Posted by Sujit Pal <su...@comcast.net>.
Yes, check out the field type "payloads" in the schema.xml file. If you
set up one or more of your fields as type payloads (you would use the
DelimitedPayloadTokenFilterFactory during indexing in your analyzer
chain), you can then use the PayloadTermQuery to query it with, scoring
can be done with a custom PayloadSimilarity implementation. Check out
this (slightly dated) article for more information.
http://www.lucidimagination.com/blog/2009/08/05/getting-started-with-payloads/
-sujit
On Mon, 2011-02-28 at 14:49 -0300, Fabiano Nunes wrote:
> Hi!
>
> I'm studying a migration from "pure" Lucene to Solr, but I need a crucial
> feature:
> Is it posible to retrieve payloads from Solr?
>
> I'm storing the coordinates from each term in its payload to highlight
> images in client-side.
>
> Thank you,