# Refresh on 1.4.0 not working as expected

**URL:** <https://discuss.elastic.co/t/refresh-on-1-4-0-not-working-as-expected/20753>\
**Category:** Elasticsearch\
**Created:** [November 14, 2014, 4:04pm UTC](https://discuss.elastic.co/t/refresh-on-1-4-0-not-working-as-expected/20753 "2014-11-14T16:04:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Nine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/todd_nine/32/778_2.png) [@Todd\_Nine](https://discuss.elastic.co/u/Todd_Nine)\
**Post date:** [November 14, 2014, 4:04pm UTC](https://discuss.elastic.co/t/refresh-on-1-4-0-not-working-as-expected/20753/1 "2014-11-14T16:04:29Z")

</div>

Hey guys,  
We're testing ES 1.4.0 from 1.3.2. I'm noticing some strange behavior in  
our clients in our integration tests. They perform the following logic.

Create an the first index in the cluster (single node) with a custom  
**default** dynamic mapping

Add 3 documents, each of a a new type to the index. egg, muffin, oj

Perform a refresh on the new index

Perform a match all query, with the types egg, muffin, and oj. I receive  
not responses

Perform the same query above again, I receive responses, and I receive all  
documents consistently after refresh.

This only seems to be an issue when the following is true. On subsequent  
tests, I don't see this behavior.

1. Its the first time refresh is called on the first index created in the  
system
2. The index uses default type mappings

If I roll back to 1.3.2, I don't see this. I haven't tried 1.3.5. Has  
something changed internally on index refresh? Note that we use the  
refresh operation sparingly and mostly in rare admin functions of our  
system, or in integration testing. We rarely use this in production.

Thanks,  
Todd

--  
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/5d1c2295-1627-427e-a5a4-ba9764bb938a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5d1c2295-1627-427e-a5a4-ba9764bb938a%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:49am UTC](https://discuss.elastic.co/t/refresh-on-1-4-0-not-working-as-expected/20753/2 "2017-07-06T00:49:58Z")

</div>


