开发者

Lucene searches on 2 field values as single

开发者 https://www.devze.com 2023-04-06 20:32 出处:网络
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?

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)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消