Hi List,
I'm interested to integrate elasticsearch in one of our projects and
started some simple research to understand how this can be done.
Now, I try to get a situation that allows me to query on something and
limit the results by filtering on 'terms'
In my first setup, I tried to re-play the tweet example with my own data
and found that my query with 'term' (not terms yet) does not work
curl -XPOST 'localhost:9200/tip/_search?pretty=true' -d
'{"query":{"term":{"name":"Installation"}}}'
When I change to 'text' it does work :
curl -XPOST 'localhost:9200/tip/_search?pretty=true' -d
'{"query":{"text":{"name":"Installation"}}}'
Any idea what could be wrong ?
I have added a gist with the full sample, creating an index, 2 documents of
a certain type (project) and with the 2 queries.
This is all done on a clean 0.20.5 installation.
Kind regards,
Olger
--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.