I guess it's not possible for all types then: int, sdate, etc. Because, Highlighting will only work on text fields.
-----Original Message----- From: Lance Norskog [mailto:goks...@gmail.com] Sent: Monday, January 25, 2010 3:47 PM To: solr-user@lucene.apache.org Subject: Re: determine 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 results. On Mon, Jan 25, 2010 at 7:26 AM, Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS] <timothy.j.har...@nasa.gov> wrote: > 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 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 > > -- Lance Norskog goks...@gmail.com