I am trying to run a simple search and for some reason it's not working. I
might just be making a simple mistake here. I indexed 2 documents:

[ec2-user@ip-10-80-140-13 ~]$ curl -XPUT '
http://localhost:9200/users/payments/2' -d '{
>   "namespace": "ns1",
>   "id": "1",
>   "fastId": "f1",
>   "version": 1393443298027,
>   "lang": "en",
>   "opType": "create",
>   "fields": {
>     "field2": "value2",
>     "field1": "value11"
>   },
>   "arrayFields": {}
> }'
{"_index":"users","_type":"payments","_id":"2","_version":1,"created":true}[

[ec2-user@ip-10-80-140-13 ~]$ curl -XPUT '
http://localhost:9200/users/payments/1' -d '{
>   "namespace": "ns1",
>   "id": "2",
>   "fastId": "f1",
>   "version": 1393443298027,
>   "lang": "en",
>   "opType": "create",
>   "fields": {
>     "field2": "value2",
>     "field1": "value1"
>   },
>   "arrayFields": {}
> }'
{"_index":"users","_type":"payments","_id":"1","_version":1,"created":true}

And now I am trying to run a simple search and it doesn't seem to return
any docs. I expected 2 docs to match:

[ec2-user@ip-10-80-140-13 ~]$ curl -XGET '
http://localhost:9200/users/payments/_search?q=field.field1:value1'
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}

[ec2-user@ip-10-80-140-13 ~]$ curl -XGET '
http://localhost:9200/users/payments/_search?q=value1'
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoLRfwPr7tPtv9LuN%2B3jcbTuWKp8ioBY-YsZnYgcXoHZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to