WA-NEW-005: Remove unsupported use_dis_max from query_string queries (ES7)#649
Open
kitcommerce wants to merge 5 commits intonextfrom
Open
WA-NEW-005: Remove unsupported use_dis_max from query_string queries (ES7)#649kitcommerce wants to merge 5 commits intonextfrom
kitcommerce wants to merge 5 commits intonextfrom
Conversation
added 5 commits
February 20, 2026 14:17
…(ES7) The use_dis_max parameter was removed from the Elasticsearch query_string query in ES7. It caused a 400 parsing_exception: [query_string] query does not support [use_dis_max] In ES7 the equivalent behavior is achieved via tie_breaker (default 0.0 gives pure dis_max scoring). Where tie_breaker was already present (product search) only use_dis_max was removed; where it was absent (admin index search, help search) removing the flag restores the ES7 default (tie_breaker=0). Files changed: - core/app/queries/workarea/search/admin_index_search.rb - core/app/queries/workarea/search/help_search.rb - core/app/queries/workarea/search/product_search.rb
d22d283 to
021eecd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #645.\n\nExtracted from stacked PRs #630/#631 to make merge order linear.