ilto:timothy.j.har...@nasa.gov]
> Sent: Friday, January 22, 2010 2:53 PM
> To: solr-user@lucene.apache.org
> Subject: determine which value produced a hit in multivalued field type
>
> Hi,
> If I have a multiValued field type of text, and I put values
> [cat,dog,green,blue] in it.
Hi,
SIREn [1] could provide you such information (return the value index in
the multi-valued field). But actually, only a Lucene extension is
available, and you'll have to modified a little bit the SIREn query
operator to returns you the value position in the query results.
[1] http://siren.
ay, January 22, 2010 2:53 PM
> To: solr-user@lucene.apache.org
> Subject: determine which value produced a hit in multivalued field type
>
> Hi,
> 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
ine which value produced a hit in multivalued field type
Hi,
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?
Thanks!
Tim
Wait, let's be clear here Lance... multivalued fields are indeed
guaranteed to return in the order they were indexed. However, you
can't really tell, using this example, that a query for "dog" matches
which instance of that field. You maybe kinda can using highlighting
though?
E
No, the return order is not guaranteed.
On Fri, Jan 22, 2010 at 2:52 PM, Harsch, Timothy J. (ARC-TI)[PEROT
SYSTEMS] wrote:
> Hi,
> 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 d
Hi,
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?
Thanks!
Tim