Browse Source

[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".
antonisppn 9 năm trước cách đây
mục cha
commit
e77f4710e4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/reference/query-dsl/percolate-query.asciidoc

+ 1 - 1
docs/reference/query-dsl/percolate-query.asciidoc

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