# Search being flaky -- not working consistently, then starting to work next morning

**URL:** <https://discuss.elastic.co/t/search-being-flaky-not-working-consistently-then-starting-to-work-next-morning/5575>\
**Category:** Elasticsearch\
**Created:** [October 12, 2011, 10:20am UTC](https://discuss.elastic.co/t/search-being-flaky-not-working-consistently-then-starting-to-work-next-morning/5575 "2011-10-12T10:20:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug\_livesey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doug_livesey/32/2114_2.png) [@doug\_livesey](https://discuss.elastic.co/u/doug_livesey)\
**Post date:** [October 12, 2011, 10:20am UTC](https://discuss.elastic.co/t/search-being-flaky-not-working-consistently-then-starting-to-work-next-morning/5575/1 "2011-10-12T10:20:53Z")

</div>

Hi -- I'm developing a Rails app with elasticsearch (using the HTTP API).  
I'm just a bit concerned, as last night elasticsearch was consistently  
failing to search for objects that contained arrays of integers.  
If those integers were changed to strings, then the search worked, so I  
posted a question about that to this list.  
This morning, I thought "Oh, well -- I'll just use strings for id arrays for  
now", but before I could make the change, all my tests were suddenly  
passing.  
I went to the terminal & played with cURL, and indeed confirmed that the  
filter searches on arrays of integers that weren't working last night now  
were.  
Is this weird, anomalous behaviour?  
If so, is it very rare?  
I'm a little worried, as I'm about to put elasticsearch into our production  
stack as a very major component, so any reassurance that people could offer  
would be very appreciated! 🙂  
Cheers,  
Doug.

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [October 12, 2011, 5:52pm UTC](https://discuss.elastic.co/t/search-being-flaky-not-working-consistently-then-starting-to-work-next-morning/5575/2 "2011-10-12T17:52:48Z")

</div>

Sounds really sketchy to me and I've never observed such behavior.

Are you sure you're the only one touching this stuff?

I'd recommend writing an automated test that runs at some interval to  
see if this inconsistent behavior can be consistently reproduced.

Thanks

On Oct 12, 4:20 am, doug livesey [biot...@gmail.com](mailto:biot...@gmail.com) wrote:

> Hi -- I'm developing a Rails app with elasticsearch (using the HTTP API).  
> I'm just a bit concerned, as last night elasticsearch was consistently  
> failing to search for objects that contained arrays of integers.  
> If those integers were changed to strings, then the search worked, so I  
> posted a question about that to this list.  
> This morning, I thought "Oh, well -- I'll just use strings for id arrays for  
> now", but before I could make the change, all my tests were suddenly  
> passing.  
> I went to the terminal & played with cURL, and indeed confirmed that the  
> filter searches on arrays of integers that weren't working last night now  
> were.  
> Is this weird, anomalous behaviour?  
> If so, is it very rare?  
> I'm a little worried, as I'm about to put elasticsearch into our production  
> stack as a very major component, so any reassurance that people could offer  
> would be very appreciated! 🙂  
> Cheers,  
> Doug.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [October 12, 2011, 9:26pm UTC](https://discuss.elastic.co/t/search-being-flaky-not-working-consistently-then-starting-to-work-next-morning/5575/3 "2011-10-12T21:26:50Z")

</div>

Yea, sounds strange, it sounds strange that its something in elasticsearch,  
but if you manage to repro, will be happy to have a look.

On Wed, Oct 12, 2011 at 7:52 PM, ppearcy [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:

> Sounds really sketchy to me and I've never observed such behavior.
> 
> Are you sure you're the only one touching this stuff?
> 
> I'd recommend writing an automated test that runs at some interval to  
> see if this inconsistent behavior can be consistently reproduced.
> 
> Thanks
> 
> On Oct 12, 4:20 am, doug livesey [biot...@gmail.com](mailto:biot...@gmail.com) wrote:
> 
> > Hi -- I'm developing a Rails app with elasticsearch (using the HTTP API).  
> > I'm just a bit concerned, as last night elasticsearch was consistently  
> > failing to search for objects that contained arrays of integers.  
> > If those integers were changed to strings, then the search worked, so I  
> > posted a question about that to this list.  
> > This morning, I thought "Oh, well -- I'll just use strings for id arrays  
> > for  
> > now", but before I could make the change, all my tests were suddenly  
> > passing.  
> > I went to the terminal & played with cURL, and indeed confirmed that the  
> > filter searches on arrays of integers that weren't working last night now  
> > were.  
> > Is this weird, anomalous behaviour?  
> > If so, is it very rare?  
> > I'm a little worried, as I'm about to put elasticsearch into our  
> > production  
> > stack as a very major component, so any reassurance that people could  
> > offer  
> > would be very appreciated! 🙂  
> > Cheers,  
> > Doug.

---

<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, 3:52am UTC](https://discuss.elastic.co/t/search-being-flaky-not-working-consistently-then-starting-to-work-next-morning/5575/4 "2017-07-06T03:52:09Z")

</div>


