[docs] Percolator samples are not working. Mapping is wrong.
Hi all, I was trying to run the percolate examples, but I figured that because of the "type":"keyword" , the code wasn't working. In the saerch query the "message" : "A new bonsai tree in the office" is a pure string. I changed it to "text".
This commit is contained in:
parent
96834120f2
commit
e77f4710e4
|
@ -19,7 +19,7 @@ PUT /my-index
|
|||
"doctype": {
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "keyword"
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue