Update terms-query.asciidoc

user id of tweet hould exist in the `followers`, otherwise the search result is empty
This commit is contained in:
chenxiang 2016-04-11 20:48:10 +08:00 committed by Lee Hinman
parent 069eb72604
commit a0aea5baf7

View File

@ -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