[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:
antonisppn 2016-09-07 13:15:20 +01:00 committed by Nik Everett
parent 96834120f2
commit e77f4710e4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ PUT /my-index
"doctype": { "doctype": {
"properties": { "properties": {
"message": { "message": {
"type": "keyword" "type": "text"
} }
} }
}, },