lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Finding out which field caused the search hit
Date Mon, 10 Sep 2007 11:57:34 GMT

On Sep 10, 2007, at 4:12 AM, makkhar wrote:
> This question has been asked numerous times here. But the answer  
> has never
> been satisfactory. Can someone answer it full and final, please ?
>
> If you get back a document as a search hit. How do you find out  
> which field
> in it matched ? Just the position of the field is sufficient !

Short answer is you can't.  Longer answer, of course Lucene matches  
on a per-field basis, so it is determining those sorts of things  
during the search operation, but it does not keep that information  
handy along with the Hit.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message