Problem in filtering data based on individual fields

Thanks David, it indeed works if I use "testapp" instead of "TestApp"!!
Can you point me to some links to understand this better? What does it mean
by saying "Term query is not analyzed"?
If my values are case-sensitive which types of filter are suitable?

On Mon, Mar 3, 2014 at 12:57 PM, David Pilato david@pilato.fr wrote:

Try testapp lowercase.
Term query is not analyzed.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 3 mars 2014 à 04:00, Srinath C srinath.c@gmail.com a écrit :

Hi,
I'm a newbie to elasticsearch and I have been trying to understand the
Query DSL and am having some difficulty in querying data using filters.

Records are being added to an index with a structure as below:
{ "applicationId": "TestApp", "timestamp": 1393649305868, "value": 20
}

{ "applicationId": "App", "timestamp": 1393649305868, "value": 20 }

After adding sufficient number of records, am trying to query back the
data using the query (Path /{index}/{type}/_search ):

  • { "query": { "match_all": { } }, "filter": { "bool": { "must": [ {
    "term" : { "applicationId" : "TestApp" } } ] } }, "size": 10 }*

    But no records match the query. I looked at the way kibana is creating
    queries for the same and it looks pretty complex (attached).

{"took":6,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}

Can anyone reason out what is wrong with the above filter based query
and can there be a simpler query than what kibana uses(attached)?

Thanks,
Srinath.

--
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/8dd18c69-1b5d-406a-845b-d3a6858b0293%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.
<kibana.json>

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/_W3HSc-2Lds/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/E87CFBD6-7509-4E3C-868A-76D171CE83A6%40pilato.fr
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHhx-GK5jWrWEauW4ATSUzhKKocwr_Vhk8MEy%2B6A5BNxTjLjnw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.