List Info

Thread: Finding out which field caused the search hit




Finding out which field caused the search hit
country flaguser name
United States
2007-09-10 03:12:43
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
!

-thanks

-- 
View this message in context: http://www.nabble.co
m/Finding-out-which-field-caused-the-search-hit-tf4412955.ht
ml#a12588494
Sent from the Lucene - Java Users mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: java-user-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


Re: Finding out which field caused the search hit
country flaguser name
United States
2007-09-10 06:57:34
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-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )