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.
精彩评论