You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Peter Wilkins <pw...@MIT.EDU> on 2011/04/11 23:33:05 UTC

returning raw payloads in Solr

Hi All:
I have found a wealth of information online about using payloads to influence the rank of search results, which seems to be the prevalent use case.

I want to do something a little different.  I want to return the raw payload I have associated with the token(s) contained in the search query.  I think this is Jira issue LUCENE-1888. I have used the examples I have found online to store the payloads in the index, which I can verify using Luke.   What isn't apparent is the chain of objects I need to return that data in the result set.

Could someone indicate which objects I need to use to get the results back in Solr?  
I appears I need to implement a QParserPlugin, and a QParser, but what do I need to implement to get my payload results from the QParser the results?
Do I need a similarity() method if I don't intend to use the payload for boosting?  

Any guidance would be greatly appreciated,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org