I cannot find a way to do this via the API. In addition to knowing which fields matched it would be good to be able to say where the match position starts and ends in each field. This would make it easy to display search results with highlighted terms. Sincerely, Anthony Eden Adriano Labate wrote: > If a do a multi field search, is it possible to know the field name > where the search term has been found? > > In my case I have documents containing several fields and I search > for a term in all or a part of these fields. > > What I would like to know is the name of the field(s) where the term > has been found, so that I can then display for example: > > "Organization: ... bla bla TERM bla bla ..." "Category: TERM" > > Any suggestions? > > Regards, Adriano Labate > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org