Keyword and Completion of same text mapping

Hello..

Kindly anybody can tell this mapping will work...or not
PUT redmi
{
"mappings": {
"products": {
"properties": {
"title": {
"type": "keyword",
"fields": {
"keyword": {
"type": "completion"
}
}
},
"weight": {
"type": "integer"
}
}
}
}
}

Actually I am putting data title from another index to this above another index...
So can anybody suggest this will work...saving as a keyword but searching with completion.

Thank you.

If you plan to use completion suggester on field title.keyword, yes it will work.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.