Searching or filtering for a particular term is very frequent. Term query and filter work with exact values and are generally very fast.
You need a working ElasticSearch cluster and an index populated with the script available in online code.
For executing a term query/filter, we need to perform the following steps:
We execute a term query, from command line as follows:
curl -XPOST 'http://127.0.0.1:9200/test-index/test-type/_search' -d '{ "query": { "term": { "uuid": "33333" } } }'
The result returned by ElasticSearch, if everything is all right, should be as follows:
{ "took" : 58, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "failed" : 0 }, "hits" : { "total" : 1, "max_score" : 0.30685282, "hits" : [ { "_index" : "test-index", "_type" : "test-type", "_id" : "3", "_score" : 0.30685282, "_source" : {"position": 3, "parsedtext...