Skip to content

adding "unmapped_type":"keyword" to order #88

@safen

Description

@safen

I have multiple index some index doesn't have col_1 how to add "unmapped_type":"keyword" to my orderBy to avoid error

GET data_index_1,data_index_2/_search
{
"query": {
"bool": {
"must_not": [
{ "exists": { "field": "deleted_at" } }
],
"must": [
{
"multi_match": {
"query": "ali",
"type": "best_fields",
"fields": ["col_1"]
}
}
]
}
},
"size": 1000000,
"sort": [
{ "col_1.keyword": { "order": "asc", "unmapped_type":"keyword" } }
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions