# Need advise on increasing the elastic search performance

**URL:** <https://discuss.elastic.co/t/need-advise-on-increasing-the-elastic-search-performance/67414>\
**Category:** Elasticsearch\
**Created:** [November 28, 2016, 11:53pm UTC](https://discuss.elastic.co/t/need-advise-on-increasing-the-elastic-search-performance/67414 "2016-11-28T23:53:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![subbu.nv](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@subbu.nv](https://discuss.elastic.co/u/subbu.nv)\
**Post date:** [November 28, 2016, 11:53pm UTC](https://discuss.elastic.co/t/need-advise-on-increasing-the-elastic-search-performance/67414/1 "2016-11-28T23:53:55Z")

</div>

i am currently using the below Query. The search is taking lots of time and the query is against 400GB data. it is even slow when i do a regex query. can you pleas advise if i have to make some changes to the below query to make the search faster?

{  
"size" : 0,  
"query" : {  
"bool" : {  
"must" : [ {  
"range" : {  
"filetimestamp" : {  
"from" : "2016-01-01T08:00:00.000Z",  
"to" : "2016-11-28T23:41:40.280Z",  
"include\_lower" : true,  
"include\_upper" : true  
}  
}  
}, {  
"wildcard" : {  
"filename" : "_CQH_"  
}  
}, {  
"regexp" : {  
"msg\_ext" : {  
"value" : "._MESSAGE_.\*",  
"flags\_value" : 65535  
}  
}  
} ]  
}  
},  
"fields" : "filename",  
"sort" : [ {  
"filetimestamp" : {  
"order" : "desc"  
}  
} ],  
"aggregations" : {  
"file\_time\_stamp" : {  
"date\_histogram" : {  
"field" : "filetimestamp",  
"interval" : "1m",  
"min\_doc\_count" : 1,  
"order" : {  
"\_key" : "desc"  
}  
},  
"aggregations" : {  
"file\_name" : {  
"terms" : {  
"field" : "filename",  
"size" : 50  
}  
}  
}  
}  
}  
}

thanks

---

<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:** [December 26, 2016, 11:54pm UTC](https://discuss.elastic.co/t/need-advise-on-increasing-the-elastic-search-performance/67414/2 "2016-12-26T23:54:46Z")

</div>

Closed on December 26, 2016, 11:54pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
