Enforce order for phrase query highlighter with slop
Closed this issue · 1 comments
dainiusjocas commented
E.g. phrase "A B" with slop 2 will match the text "B A". But there are cases when we want that A must precede B, e.g. "A x x B".
Try out SpanNearQuery
with flag inOrder
.
dainiusjocas commented
Handle the case with one term phrase queries with slop and order