Hey Seif,
I had this problem myself and I think it catches a lot of people.
The problem is because "term query" is not analyzed.
So you need something like "query_string" or match query to make your query
analyzed.
Cheers.
On Saturday, April 12, 2014 8:31:37 PM UTC+1, Seif Lotfy wrote:
>
> I am storing my documents as follows:
>
>
> {
> _index: "crash-instances-app1"
> _type: "crash"
> _id: "LmSAjgrvSry2ltvsxAVqcw"
> _source: {
> OsInfo: "osinfo1"
> Exception: "exception1"
> Description: "desc1"
> AppId: "app1"
> StackTraces: "stack1"
> Timestamp: 1395751604
> DeviceInfo: "device91"
> Id: "Id-9829"
> ClientId: "client69"
> CrashId: "crash29"
> }
> }
>
> querying via
>
> {
> "query": {
> "term": {
> "AppId": "app1"
> }
> }
> }
>
> works great and i get this document back, yet querying via
>
> {
> "query": {
> "term": {
> "Id": "Id-9829"
> }
> }
> }
>
>
> return nothing.
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/c1af5d47-29f5-42ab-a6a8-ddb8278115e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.