[LTR] Fix feature display order when using explain.#137671
Merged
afoucret merged 3 commits intoelastic:mainfrom Nov 6, 2025
Merged
[LTR] Fix feature display order when using explain.#137671afoucret merged 3 commits intoelastic:mainfrom
afoucret merged 3 commits intoelastic:mainfrom
Conversation
Collaborator
|
Hi @afoucret, I've created a changelog YAML for you. |
Collaborator
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
afoucret
commented
Nov 6, 2025
| }"""); | ||
| var response = client().performRequest(request); | ||
| assertExplainExtractedFeatures(response, List.of("type_tv", "cost", "two")); | ||
| assertExplainExtractedFeatures(response, List.of("cost", "type_tv", "two")); |
Contributor
Author
There was a problem hiding this comment.
ℹ️ The bug is here: we should check the order of feature in explain is the same as the one in the model definition.
c5eb6d8 to
32aa948
Compare
mridula-s109
approved these changes
Nov 6, 2025
Contributor
mridula-s109
left a comment
There was a problem hiding this comment.
Thanks for catching and resolving the bug!
Collaborator
afoucret
added a commit
to afoucret/elasticsearch
that referenced
this pull request
Nov 6, 2025
afoucret
added a commit
to afoucret/elasticsearch
that referenced
this pull request
Nov 6, 2025
afoucret
added a commit
to afoucret/elasticsearch
that referenced
this pull request
Nov 6, 2025
afoucret
added a commit
to afoucret/elasticsearch
that referenced
this pull request
Nov 6, 2025
szybia
added a commit
to szybia/elasticsearch
that referenced
this pull request
Nov 6, 2025
…-json
* upstream/main:
Mute org.elasticsearch.xpack.inference.action.filter.ShardBulkInferenceActionFilterBasicLicenseIT testLicenseInvalidForInference {p0=false} elastic#137691
Mute org.elasticsearch.xpack.inference.action.filter.ShardBulkInferenceActionFilterBasicLicenseIT testLicenseInvalidForInference {p0=true} elastic#137690
[LTR] Fix feature display order when using explain. (elastic#137671)
Remove extra RemoteClusterService instances in unit test (elastic#137647)
Fix `ComponentTemplatesFileSettingsIT.testSettingsApplied` (elastic#137669)
Consolidates troubleshooting content into the "Returning semantic field embeddings in _source" section (elastic#137233)
Update bundled JDK to 25.0.1 (elastic#137640)
resolve indices for prefixed _all expressions (elastic#137330)
ESQL: Add TopN support for exponential histograms (elastic#137313)
allows field caps to be cross project (elastic#137530)
ESQL: Add exponential histogram percentile function (elastic#137553)
Wait for nodes to have downloaded databases in `GeoIpDownloaderIT` (elastic#137636)
Tighten on when THROTTLE decision can be returned (elastic#136794)
Mute org.elasticsearch.xpack.esql.qa.single_node.GenerativeMetricsIT test elastic#137655
Add a test for two little known conditional processor paths (elastic#137645)
Extract a common ORIGIN constant (elastic#137612)
Remove early phase failure in batched (elastic#136889)
Returning correct index mode from get data streams api (elastic#137646)
[ML] Manage AD results indices (elastic#136065)
szybia
added a commit
to szybia/elasticsearch
that referenced
this pull request
Nov 6, 2025
…-json
* upstream/main:
Mute org.elasticsearch.xpack.inference.action.filter.ShardBulkInferenceActionFilterBasicLicenseIT testLicenseInvalidForInference {p0=false} elastic#137691
Mute org.elasticsearch.xpack.inference.action.filter.ShardBulkInferenceActionFilterBasicLicenseIT testLicenseInvalidForInference {p0=true} elastic#137690
[LTR] Fix feature display order when using explain. (elastic#137671)
Remove extra RemoteClusterService instances in unit test (elastic#137647)
Fix `ComponentTemplatesFileSettingsIT.testSettingsApplied` (elastic#137669)
Consolidates troubleshooting content into the "Returning semantic field embeddings in _source" section (elastic#137233)
Update bundled JDK to 25.0.1 (elastic#137640)
resolve indices for prefixed _all expressions (elastic#137330)
ESQL: Add TopN support for exponential histograms (elastic#137313)
allows field caps to be cross project (elastic#137530)
ESQL: Add exponential histogram percentile function (elastic#137553)
Wait for nodes to have downloaded databases in `GeoIpDownloaderIT` (elastic#137636)
Tighten on when THROTTLE decision can be returned (elastic#136794)
Mute org.elasticsearch.xpack.esql.qa.single_node.GenerativeMetricsIT test elastic#137655
Add a test for two little known conditional processor paths (elastic#137645)
Extract a common ORIGIN constant (elastic#137612)
Remove early phase failure in batched (elastic#136889)
Returning correct index mode from get data streams api (elastic#137646)
[ML] Manage AD results indices (elastic#136065)
elasticsearchmachine
pushed a commit
that referenced
this pull request
Nov 6, 2025
elasticsearchmachine
pushed a commit
that referenced
this pull request
Nov 6, 2025
Kubik42
pushed a commit
to Kubik42/elasticsearch
that referenced
this pull request
Nov 10, 2025
elasticsearchmachine
pushed a commit
that referenced
this pull request
Nov 13, 2025
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.
When using the explain feature of LTR the feature should be displayed in the same order as declared in the model.