RE: determine which value produced a hit in multivalued field type

2010-01-26 Thread Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS]
which value produced a hit in multivalued field type Thanks Erik, I did not know about the order guarantee for indexed multivalue fields. Timothy, it could be more than one term matches the queries. Highlighting will show you which terms matched your query. You'll have to post-process the result

Re: determine which value produced a hit in multivalued field type

2010-01-26 Thread Renaud Delbru
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.

Re: determine which value produced a hit in multivalued field type

2010-01-25 Thread Lance Norskog
Thanks Erik, I did not know about the order guarantee for indexed multivalue fields. Timothy, it could be more than one term matches the queries. Highlighting will show you which terms matched your query. You'll have to post-process the results. On Mon, Jan 25, 2010 at 7:26 AM, Harsch, Timothy J.

RE: determine which value produced a hit in multivalued field type

2010-01-25 Thread Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS]
If a simple "no" is the answer I'd be glad if anyone could confirm. Thanks. -Original Message- From: Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS] [mailto:timothy.j.har...@nasa.gov] Sent: Friday, January 22, 2010 2:53 PM To: solr-user@lucene.apache.org Subject: determine which value produc

Re: determine which value produced a hit in multivalued field type

2010-01-22 Thread Erik Hatcher
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

Re: determine which value produced a hit in multivalued field type

2010-01-22 Thread Lance Norskog
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