I have a document
How to do sort in using on particular field on elasticsearch
My query is below
{
"sort":{
"name":&qu
you can make a PUT request on the index to set fielddata as true:
curl --location --request PUT 'http://localhost:9200/index_name/info/_mapping' \
--header 'Content-Type: application/json' \
--data-raw '{
"properties": {
"desc": {
"type": "text",
"fielddata": true
}
}
}'
where desc
is the column name