Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix highlighting for script_score query #46507

Merged

Conversation

mayya-sharipova
Copy link
Contributor

closes #46471

@mayya-sharipova mayya-sharipova added the :Search/Search Search-related issues that do not fall into other categories label Sep 9, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@mayya-sharipova mayya-sharipova added :Search Relevance/Highlighting How a query matched a document v7.5.0 v8.0.0 and removed :Search Relevance/Highlighting How a query matched a document :Search/Search Search-related issues that do not fall into other categories labels Sep 9, 2019
Copy link
Contributor

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

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

This looks good to me. I think the fix could also be backported to 7.4.1, as it could be considered a bug that highlighting doesn't work, and the change is quite safe.

"Script Score With Highlight":
- skip:
version: " - 7.4.99"
reason: "highlight for script_score was introduce in 7.5"
Copy link
Contributor

Choose a reason for hiding this comment

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

Small typo: introduce -> introduced. Also, should this be 7.99.99 for now since it won't be available on 7.5 until it's backported?

Copy link
Contributor Author

@mayya-sharipova mayya-sharipova Sep 9, 2019

Choose a reason for hiding this comment

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

@jtibshirani Thanks for the review. I have changed the version to 7.4.1.

should this be 7.99.99 for now since it won't be available on 7.5 until it's backported?

Looks like there are no bwc tests for modules:lang-painless, as the build passed. But I am going to backport the change immediately after the merge to master.

---
"Script Score With Highlight":
- skip:
version: " - 7.4.09"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should just be - 7.4.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jtibshirani thanks, corrected in the last commit

@mayya-sharipova mayya-sharipova merged commit f00836d into elastic:master Sep 10, 2019
@mayya-sharipova mayya-sharipova deleted the script-score-query-visitor branch September 10, 2019 12:26
@colings86 colings86 added v7.4.0 and removed v7.4.1 labels Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hightlight not worked when use script_score
5 participants