replace term query sample with text

This commit is contained in:
kimchy 2011-05-14 12:14:19 +03:00
parent 603d462d4a
commit 10108d9a4e

View File

@ -86,7 +86,7 @@ We can also use the JSON query language ElasticSearch provides instead of a quer
curl -XGET 'http://localhost:9200/twitter/tweet/_search?pretty=true' -d ' curl -XGET 'http://localhost:9200/twitter/tweet/_search?pretty=true' -d '
{ {
"query" : { "query" : {
"term" : { "user": "kimchy" } "text" : { "user": "kimchy" }
} }
}' }'
</pre> </pre>