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

2010-01-26 Thread Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS]
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.  

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
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

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

2010-01-25 Thread Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS]
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

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

determine which value produced a hit in multivalued field type

2010-01-22 Thread Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS]
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