Re: Fwd: Finding out which fields matched the query

2022-06-27 Thread Uwe Schindler
Many of us already answered in the dev mailing list. Uwe Am 25.06.2022 um 05:19 schrieb Yichen Sun: -- 转发的邮件 - 发件人: Yichen Sun 日期:2022年6月25日 周六11:14 主题:Finding out which fields matched the query 收件人: , , < java-user@lucene.apache.org> Hello! I’m a MSCS student from

Re: Finding out which fields matched the query

2022-06-27 Thread Jörn Franke
What is the reason you need the matched fields? Maybe your use case can be solved using sth completely different than knowing which fields were matched. > Am 25.06.2022 um 06:58 schrieb Yichen Sun : > > Hello! > > I’m a MSCS student from BU and learning to use Lucene. Recently I try to > outp

Fwd: Finding out which fields matched the query

2022-06-27 Thread Yichen Sun
-- 转发的邮件 - 发件人: Yichen Sun 日期:2022年6月25日 周六11:14 主题:Finding out which fields matched the query 收件人: , , < 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, f

Finding out which fields matched the query

2022-06-27 Thread Yichen Sun
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