Skip to content

Conversation

@cbuescher
Copy link
Member

The plain highlighter should order the fragments by order of appearance by
default, but sorts them by score internally. This fix changes the sorting
comparator in case ordering by score is not selected (the default) and adds
testing around this.

Closes #58236

The plain highlighter should order the fragments by order of appearance by
default, but sorts them by score internally. This fix changes the sorting
comparator in case ordering by score is not selected (the default) and adds
testing around this.

Closes elastic#58236
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jun 14, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cbuescher cbuescher merged commit 4ff3c89 into elastic:master Jul 5, 2021
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Jul 5, 2021
The plain highlighter should order the fragments by order of appearance by
default, but sorts them by score internally. This fix changes the sorting
comparator in case ordering by score is not selected (the default) and adds
testing around this.

Closes elastic#58236
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Jul 5, 2021
The plain highlighter should order the fragments by order of appearance by
default, but sorts them by score internally. This fix changes the sorting
comparator in case ordering by score is not selected (the default) and adds
testing around this.

Closes elastic#58236
cbuescher pushed a commit that referenced this pull request Jul 5, 2021
The plain highlighter should order the fragments by order of appearance by
default, but sorts them by score internally. This fix changes the sorting
comparator in case ordering by score is not selected (the default) and adds
testing around this.

Closes #58236
cbuescher pushed a commit that referenced this pull request Jul 5, 2021
The plain highlighter should order the fragments by order of appearance by
default, but sorts them by score internally. This fix changes the sorting
comparator in case ordering by score is not selected (the default) and adds
testing around this.

Closes #58236
@cbuescher
Copy link
Member Author

@jimczi thanks for the review, I ported this back to 7.x and 7.14 branches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plain Highlighter “order”:”none” is not working

5 participants