浏览代码

Update terms-query.asciidoc

user id of tweet hould exist in the `followers`, otherwise the search result is empty
chenxiang 9 年之前
父节点
当前提交
a0aea5baf7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/reference/query-dsl/terms-query.asciidoc

+ 2 - 2
docs/reference/query-dsl/terms-query.asciidoc

@@ -71,9 +71,9 @@ curl -XPUT localhost:9200/users/user/2 -d '{
    "followers" : ["1", "3"]
 }'
 
-# index a tweet, from user with id 2
+# index a tweet, from user with id 1
 curl -XPUT localhost:9200/tweets/tweet/1 -d '{
-   "user" : "2"
+   "user" : "1"
 }'
 
 # search on all the tweets that match the followers of user 2