-
Notifications
You must be signed in to change notification settings - Fork 25.8k
"max_score" is null for query with field collapsing #23840
Copy link
Copy link
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>bugv5.4.4v6.1.0
Description
Elasticsearch version: 5.3.0
Plugins installed: []
JVM version:
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
OS version: Windows 10
Description of the problem including expected versus actual behavior:
"max_score" is null for query with field collapsing.
Steps to reproduce:
- Test data:
POST http://localhost:9200/_bulk
{"index":{"_index":"test","_type":"test","_id":"1"}}
{"id":1,"name":"one"}
- Test query:
POST http://localhost:9200/test/test/_search
{
"query" : {
"multi_match" : {
"fields" : "name",
"query" : "one"
}
},
"collapse" : {
"field" : "id",
"inner_hits" : {
"name" : "some_name"
}
}
}
Describe the feature:
The response contains max_score. And it's null.
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": null,
"hits": [
{
"_index": "test",
"_type": "test",
"_id": "1",
"_score": 0.2876821,
"_source": {
"id": 1,
"name": "one"
},
"fields": {
"id": [
1
]
},
"inner_hits": {
"some_name": {
"hits": {
"total": 1,
"max_score": 0.2876821,
"hits": [
{
"_index": "test",
"_type": "test",
"_id": "1",
"_score": 0.2876821,
"_source": {
"id": 1,
"name": "one"
}
}
]
}
}
}
}
]
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>bugv5.4.4v6.1.0
Type
Fields
Give feedbackNo fields configured for issues without a type.