Keyword and Completion of same text mapping


#1

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.


(Thiago Souza) #2

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


#3

Thanks


(system) #4

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