# Elasticsearch search speed

**URL:** <https://discuss.elastic.co/t/elasticsearch-search-speed/156411>\
**Category:** Elasticsearch\
**Created:** [November 13, 2018, 8:30am UTC](https://discuss.elastic.co/t/elasticsearch-search-speed/156411 "2018-11-13T08:30:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [November 13, 2018, 8:30am UTC](https://discuss.elastic.co/t/elasticsearch-search-speed/156411/1 "2018-11-13T08:30:47Z")

</div>

I know that elasticsearch has a search time of around one second.

Here is an answer.  
If there is no search condition and there is one condition, is there a difference in search speed?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 13, 2018, 9:21am UTC](https://discuss.elastic.co/t/elasticsearch-search-speed/156411/2 "2018-11-13T09:21:06Z")

</div>

Elasticsearch does not have a search time of around one second. What you are referring to is probably the default refresh interval (default is 1 second), which determines how quickly indexed or updated documents are available to be searched. This does however not relate to query performance.

---

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [November 13, 2018, 10:40am UTC](https://discuss.elastic.co/t/elasticsearch-search-speed/156411/3 "2018-11-13T10:40:27Z")

</div>

Thank you!! So, with and without search conditions, search speed is not affected.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 13, 2018, 10:44am UTC](https://discuss.elastic.co/t/elasticsearch-search-speed/156411/4 "2018-11-13T10:44:09Z")

</div>

I am not sure I understand your question. The type of search can naturally affect the latency, but the refresh interval typically does not.

---

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [November 13, 2018, 1:14pm UTC](https://discuss.elastic.co/t/elasticsearch-search-speed/156411/5 "2018-11-13T13:14:14Z")

</div>

I wonder if the speed of the search by checking whether the value of type 'a' is 'b' is the same as the speed of searching the whole index without checking.  
"query": { "match\_all": {}} vs "query": { "match": { "account\_number": 20 } }

---

<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 11, 2018, 1:14pm UTC](https://discuss.elastic.co/t/elasticsearch-search-speed/156411/6 "2018-12-11T13:14:24Z")

</div>

Closed on December 11, 2018, 1:14pm UTC

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