Lucene将2个字段值搜索为单个字段
Lucene文档的字段Lucene将2个字段值搜索为单个字段,lucene,lucene-highlighter,Lucene,Lucene Highlighter,Lucene文档的字段a包含内容hello和a包含内容world。如果我搜索“hello world”~2它将被建立=(。我如何修复它? FastVectorHighlighter将突出显示它,就像helloworld(没有任何空格)(无论如何它不应该突出显示)a似乎是一个多值字段。 您是否已将positionincrementgap更改为更高的值?默认值position IncrementGap为0。 这将防止出现这种情况
a
包含内容hello
和a
包含内容world
。如果我搜索“hello world”~2它将被建立=(。我如何修复它?FastVectorHighlighter
将突出显示它,就像helloworld
(没有任何空格)(无论如何它不应该突出显示)a似乎是一个多值字段。您是否已将positionincrementgap更改为更高的值?默认值position IncrementGap为0。
这将防止出现这种情况