mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-01 12:58:29 +00:00
Update terms-query.asciidoc
user id of tweet hould exist in the `followers`, otherwise the search result is empty
This commit is contained in:
parent
069eb72604
commit
a0aea5baf7
@ -71,9 +71,9 @@ curl -XPUT localhost:9200/users/user/2 -d '{
|
|||||||
"followers" : ["1", "3"]
|
"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 '{
|
curl -XPUT localhost:9200/tweets/tweet/1 -d '{
|
||||||
"user" : "2"
|
"user" : "1"
|
||||||
}'
|
}'
|
||||||
|
|
||||||
# search on all the tweets that match the followers of user 2
|
# search on all the tweets that match the followers of user 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user