---------- 转发的邮件 ---------
发件人: Yichen Sun <yiche...@bu.edu>
日期:2022年6月25日 周六11:14
主题:Finding out which fields matched the query
收件人: <d...@lucene.apache.org>, <issues-subscr...@lucene.apache.org>, <
java-user@lucene.apache.org>


Hello!

I’m a MSCS student from BU and learning to use Lucene. Recently I try to
output matched fields by one query. For example, for one document, there
are 10 fields and 2 of them match the query. I want to get the name of
these fields.

I have tried using explain() method and getting description then regex.
However it cost so much time.

I wonder what is the efficient way to get the matched fields. Would you
please offer some help? Thank you so much!

Best regards,
Yichen Sun

Reply via email to