Confused as to why a very simple query isn't working. I think I have
everything setup correctly, but have been having difficulty trying to
figure out if it's functioning the way it should.
Here's my setup:
- Couchdb
- Couchdb river and index setup
- Mappings for my objects
When I run my query (which should at least return one result) I get this:
curl -XGET 'http://localhost:9200/syncrswim/Event/_search?q=title:teach'
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
Here's my mapping for said object:
curl -XGET 'http://localhost:9200/syncrswim/Event/_mapping'
{"Event":{"properties":{"description":{"type":"string","store":"yes"},"title":{"type":"string","store":"yes"}}}}
and here's my river:
curl -XGET 'http://localhost:9200/_river/syncrswim/_meta'
{"_index":"_river","_type":"syncrswim","_id":"_meta","exists":false}
And my index
curl -XGET 'http://localhost:9200/syncrswim/_status'
{"ok":true,"_shards":{"total":2,"successful":1,"failed":0},"indices":{"syncrswim":{"index":{"primary_size":"98.9kb","primary_size_in_bytes":101373,"size":"98.9kb","size_in_bytes":101373},"translog":{"operations":0},"docs":{"num_docs":24,"max_doc":24,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":2,"total_time":"207ms","total_time_in_millis":207},"flush":{"total":2,"total_time":"97ms","total_time_in_millis":97},"shards":{"0":[{"routing":{"state":"STARTED","primary":true,"node":"YYRIHgGwTIS_SBvoA4u_SQ","relocating_node":null,"shard":0,"index":"syncrswim"},"state":"STARTED","index":{"size":"98.9kb","size_in_bytes":101373},"translog":{"id":1339435624749,"operations":0},"docs":{"num_docs":24,"max_doc":24,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":2,"total_time":"207ms","total_time_in_millis":207},"flush":{"total":2,"total_time":"97ms","total_time_in_millis":97}}]}}}}
Looking at this section:
{"num_docs":24,"max_doc":24,"deleted_docs":0}
Which is the correct number of docs.
Any ideas on why my query isn't returning anything? Thank you :-).
-warner