Hi,

Please help  me understand what's wrong here
We have this query (see below)

Without this part, which searches in a text: 

query": {
        "has_child": {
          "type": "ttype",
          "query": {"match": {
            "text": "sometext"
          }}})
       

it works pretty fast (10-20 milliseconds)  per request
But when adding the text search part the latency grows to 1 sec . 
I was thinking that ES is designed to run amazingly fast when it searches 
the text , this is why we're researching this technology

Or maybe the query is wrong??

Our ES version is 1.4.2
We have 9 primary shards + 1 replica 
Approximately 2M documents per shard (250 Mb per shard)


The query:

GET /events/Parent/_search
{
  "from": 0,
  "size": 50,
  "query": {
    "filtered": {
      "filter": {
        "bool": {
          "must": [
            {
              "range": {
                "startTime": {
                  "gte": 1424300475000,
                  "lte": 1426493475000
                }
              }
            },
            {
              "term": {
                "term1": 1
              }
            },
            {
              "exists": {
                "field": "inter"
              }
            },
            {
              "term": {
                "account": "site1"
              }
            }
          ]
        }
      },
      "query": {
        "has_child": {
          "type": "ttype",
          "query": {"match": {
            "text": "sometext"
          }}
        }
      }
    }
  }
}



Thank you,
Vladi


-- 
This message may contain confidential and/or privileged information. 
If you are not the addressee or authorized to receive this on behalf of the 
addressee you must not use, copy, disclose or take action based on this 
message or any information herein. 
If you have received this message in error, please advise the sender 
immediately by reply email and delete this message. Thank you.

-- 
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/974c40db-3195-4e0a-b401-61d2f6adbd46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to