You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
marko-bekhta opened this issue
Feb 22, 2024
· 1 comment
· Fixed by #12499
Assignees
Labels
bugSomething isn't workingSearchSearch query, autocomplete ...etcv2.13.0Issues and PRs related to version 2.13.0v3.0.0Issues and PRs related to version 3.0.0
{
"error": {
"root_cause": [
{
"type": "illegal_state_exception",
"reason": "unexpected docvalues type NONE for field 'field0_Float' (expected one of [SORTED_NUMERIC, NUMERIC]). Re-index with correct docvalues type."
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "test-float-index-000001",
"node": "KVxFfRZ6S6W5DORNcyZmig",
"reason": {
"type": "illegal_state_exception",
"reason": "unexpected docvalues type NONE for field 'field0_Float' (expected one of [SORTED_NUMERIC, NUMERIC]). Re-index with correct docvalues type."
}
}
],
"caused_by": {
"type": "illegal_state_exception",
"reason": "unexpected docvalues type NONE for field 'field0_Float' (expected one of [SORTED_NUMERIC, NUMERIC]). Re-index with correct docvalues type.",
"caused_by": {
"type": "illegal_state_exception",
"reason": "unexpected docvalues type NONE for field 'field0_Float' (expected one of [SORTED_NUMERIC, NUMERIC]). Re-index with correct docvalues type."
}
}
},
"status": 500
}
bugSomething isn't workingSearchSearch query, autocomplete ...etcv2.13.0Issues and PRs related to version 2.13.0v3.0.0Issues and PRs related to version 3.0.0
Describe the bug
Trying to execute a constant score query with a simple term filter on a float field leads to an exception.
Related component
Search
To Reproduce
"doc_values": false
:constant_score
search query:If a simple term query is executed:
or if doc values are set to
true
("doc_values": true
), then there's no error.This bug was introduced in 2.12.0; it is not reproducible in previous 2.11.1 and earlier versions.
Expected behavior
It is expected that a constant score query in this case (with simple term filter on a float field) does not fail and returns the matched documents.
Additional Details
Plugins
eabfec3b01ea opensearch-alerting 2.12.0.0
eabfec3b01ea opensearch-anomaly-detection 2.12.0.0
eabfec3b01ea opensearch-asynchronous-search 2.12.0.0
eabfec3b01ea opensearch-cross-cluster-replication 2.12.0.0
eabfec3b01ea opensearch-custom-codecs 2.12.0.0
eabfec3b01ea opensearch-flow-framework 2.12.0.0
eabfec3b01ea opensearch-geospatial 2.12.0.0
eabfec3b01ea opensearch-index-management 2.12.0.0
eabfec3b01ea opensearch-job-scheduler 2.12.0.0
eabfec3b01ea opensearch-knn 2.12.0.0
eabfec3b01ea opensearch-ml 2.12.0.0
eabfec3b01ea opensearch-neural-search 2.12.0.0
eabfec3b01ea opensearch-notifications 2.12.0.0
eabfec3b01ea opensearch-notifications-core 2.12.0.0
eabfec3b01ea opensearch-observability 2.12.0.0
eabfec3b01ea opensearch-performance-analyzer 2.12.0.0
eabfec3b01ea opensearch-reports-scheduler 2.12.0.0
eabfec3b01ea opensearch-security 2.12.0.0
eabfec3b01ea opensearch-security-analytics 2.12.0.0
eabfec3b01ea opensearch-skills 2.12.0.0
eabfec3b01ea opensearch-sql 2.12.0.0
Host/Environment (please complete the following information):
Linux Fedora 6.7.4-200.fc39.x86_64
Additional context
OpenSearch is started from an official docker image as:
The text was updated successfully, but these errors were encountered: