Sorry to bother you about another probably-simple issue I'm having.
When I'm using a query to search, with the "term" query, and the field
I'm searching for has a space in it, I can't find it. When there is no
space in the field I am searching for, I can find things.
Example below:
curl -XPUT http://localhost:9200/twitter/tweet/1 -d '{
"user" : "kim chy",
"message" : "test message"
}'
{"ok":true,"_index":"twitter","_type":"tweet","_id":"1"}
curl -XGET http://localhost:9200/twitter/tweet/_search -d '{
"query" : { "term" : { "user" : "kim chy" } }
}'
{"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":
0,"max_score":null,"hits":}}
curl -XPUT http://localhost:9200/twitter/tweet/1 -d '{
"user" : "kimchy",
"message" : "test message"
}'
{"ok":true,"_index":"twitter","_type":"tweet","_id":"1"}
curl -XGET http://localhost:9200/twitter/tweet/_search -d '{
"query" : { "term" : { "user" : "kimchy" } }
}'
{"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":
1,"max_score":1.5108256,"hits":
[{"_index":"twitter","_type":"tweet","_id":"1","_score":1.5108256,
"_source" : {
"user" : "kimchy",
"message" : "test message"
}}]}}
Thank you for your time