如何找到找到匹配项的字段? [英] How do I find the field in which the match has been found?

查看:128
本文介绍了如何找到找到匹配项的字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

小组成员,



我是Lucene.Net的新手并在我的应用程序中使用这个

在我的应用程序中我想知道在搜索期间匹配了哪个文档字段。

所以我选择了 searcher.explain()。然而后来我发现这是一种代价高昂的方法。

作为替代方案,我考虑使用contrib dll并看到 FastVectorHighlighter 类具有IsFieldMatch()api。但是没有可用的文档说明是否可以在没有任何性能限制的情况下使用它。

所以请让我知道哪个更好 searcher.explain() FastVectorHighlighter .IsFieldMatch()



如果你们有人建议我采用其他方法,也会很棒。



问候,

Shubhanshu

Group Members,

I am new at Lucene.Net and using this in my application
In my application I want to know which field of the Document has been matched during search.
So I opted for searcher.explain(). However later I found out that this is a costly approach.
As an alternative I pondered in contrib dlls and saw FastVectorHighlighter class having IsFieldMatch() api. But there is no documentation available stating if this can be used without any performance constraint.
So kindly let me know which is better searcher.explain() or FastVectorHighlighter.IsFieldMatch()

It will also be great if you people suggest me any alternative approach as well.

Regards,
Shubhanshu

推荐答案

这篇关于如何找到找到匹配项的字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆