Lucene 将 2 个字段值作为单个值进行搜索
Lucene 文档具有内容为 hello
的字段 a
和内容为 world
的 a
。如果我搜索 "hello world"~2
它将被发现 =(。我该如何修复它?FastVectorHighlighter
将像 helloworld
一样突出显示它(没有任何空格)(无论如何它不应该突出显示它)
Lucene document has field a
with content hello
and a
with content world
. If i'll search "hello world"~2
it will be founded =(. How can I fix it?FastVectorHighlighter
will highlight it like <b>helloworld</b>
(without any space) (anyway it shouldn't highlight it)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
a 似乎是一个多值字段。
您是否将positionincrementgap更改为更高的值?默认值位置增量间隙为0。
这将防止这种情况发生。
a seems to be an multivalued field.
Have you changed the positionincrementgap to a higher value ? The default value position increment gap is 0.
This will prevent the scenario.