Hi Vitaly, Try making the request with lower case "in" : http://<server>:9200/_search?q="state:in"
Aleks On Tuesday, August 19, 2014 3:40:13 PM UTC+2, vitaly wrote: > > David, my question is what I am doing wrong. > > Also when I do URI search > http://<server>:9200/_search?q="state:IN" > I am getting 0 results > > {"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}} > > > What I could do wrong? > > On Tuesday, August 19, 2014 9:20:43 AM UTC-4, David Pilato wrote: > >> I don't really understand the question but I'd say that you should use >> Marvel / Sense. >> It has a better support for running queries. >> >> >> -- >> *David Pilato* | *Technical Advocate* | *Elasticsearch.com* >> @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr >> <https://twitter.com/elasticsearchfr> >> >> >> Le 19 août 2014 à 15:10:25, vitaly (vitaly....@gmail.com) a écrit: >> >> Using elasticsearch-head I do query >> { >> "query": { >> "term": { >> "NONSENSE":"NONSENSE" >> } >> } >> } >> The result shows the entire set no matter what I type in "term" >> { >> >> - took: 2 >> - timed_out: false >> - _shards: { >> - total: 5 >> - successful: 5 >> - failed: 0 >> } >> - hits: { >> - total: 10 >> - max_score: 1 >> - hits: [ >> - { >> - _index: logstash-2014.08.18 >> - _type: logs >> - _id: SMUgTGR9R-2SVaL1GTeX9A >> - _score: 1 >> - _source: { >> - message: ...... >> - @version: 1 >> - @timestamp: 2014-08-18T16:16:48.797Z >> - host: ......... >> - kw: area a realty >> - town: South Bend >> - state: IN >> - ip: 198.64.136.68 >> - src: ve-whitepages-dt >> } >> } >> - { >> - _index: logstash-2014.08.18 >> - _type: logs >> - _id: yWR6DC9sQ2yAqxG9FJXauw >> - _score: 1 >> - _source: { >> - message: ...... >> - @version: 1 >> - @timestamp: 2014-08-18T16:16:48.797Z >> - host: ....... >> - kw: Doors >> - town: Chicago >> - state: IL >> - ip: 98.213.210.163 >> - src: lsxppc21611 >> } >> } >> - { >> - _index: logstash-2014.08.18 >> - _type: logs >> - _id: Z_e-DQQkSv2ON1ar1WooSQ >> - _score: 1 >> - _source: { >> - message: ....... >> - @version: 1 >> - @timestamp: 2014-08-18T16:16:48.797Z >> - host: ....... >> - kw: home improvement >> - town: Clarkston >> - state: GA >> - ip: 172.56.1.181 >> - src: lsxppc19735 >> } >> } >> >> -- >> 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 elasticsearc...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/4ee5fa39-804b-4b48-9b76-21225daa9c35%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/4ee5fa39-804b-4b48-9b76-21225daa9c35%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/87cc4b5e-eb5b-4c22-b680-e9090419af53%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.