determine which value produced a hit in SOLR multivalued field type

Posted by harschware on Stack Overflow See other posts from Stack Overflow or by harschware
Published on 2010-01-25T19:42:04Z Indexed on 2010/06/08 11:22 UTC
Read the original article Hit count: 241

Filed under:
|
|

If I have a multiValued field type of text, and I put values [cat,dog,green,blue] in it. Is there a way to tell when I execute a query against that field for dog, that it was in the 1st element position for that multiValued field?

Assumption: client does not have any pre-knowledge of what the field type of the field being queried is. (i.e. Solr must provide the answer and the client can't post process the return doc to figure it out because it would not know how SOLR matched the query to the result).

Disclosure: I posted to solr-user list and am getting no traction so I post here now.

© Stack Overflow or respective owner

Related posts about apache

Related posts about lucene