# Is ElasticSearch supposed to run fast when searching the text?

**URL:** <https://discuss.elastic.co/t/is-elasticsearch-supposed-to-run-fast-when-searching-the-text/22980>\
**Category:** Elasticsearch\
**Created:** [March 30, 2015, 12:50pm UTC](https://discuss.elastic.co/t/is-elasticsearch-supposed-to-run-fast-when-searching-the-text/22980 "2015-03-30T12:50:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladi\_Feigin](https://avatars.discourse-cdn.com/v4/letter/v/258eb7/32.png) [@Vladi\_Feigin](https://discuss.elastic.co/u/Vladi_Feigin)\
**Post date:** [March 30, 2015, 12:50pm UTC](https://discuss.elastic.co/t/is-elasticsearch-supposed-to-run-fast-when-searching-the-text/22980/1 "2015-03-30T12:50:17Z")

</div>

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/974c40db-3195-4e0a-b401-61d2f6adbd46%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/974c40db-3195-4e0a-b401-61d2f6adbd46%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/is-elasticsearch-supposed-to-run-fast-when-searching-the-text/22980/2 "2017-07-06T00:23:06Z")

</div>


