本文介绍了使用Lucene.net 2.0突出显示精确的单词组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用Lucene.NET 2.0.我试图在三个字段中搜索确切的单词组合,我的搜索查询如下:

Hi all,

I''m using Lucene.NET 2.0. I''m trying to search for an exact word combination into three fields, my search query is as follow:

+(title:"overgang bromfiets" figure:"overgang bromfiets" contenttext:"overgang bromfiets")



我发现的搜索结果必须突出显示,但是单词 overgang bromfiets 分别突出显示.

有没有人知道如何对整个搜索命令" overgang bromfiets "进行分类?

感谢您提供所有答案.

问候,
Wouter Splinter



The search result which I found has to be highlighted, but the words overgang and bromfiets are highlighted seperately.

Has anyone an idea how to higihlighted on the whole search command "overgang bromfiets"?

Thanks for all answers.

Regards,
Wouter Splinter

推荐答案



这篇关于使用Lucene.net 2.0突出显示精确的单词组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 10:50