In elasticsearch tests I delete an index and create it each time. I think that we should solve this problem, lemme ping you back when I have a solution. I think, for a testing perspective, deleting an index and creating it is the correct approach, so its a shame you won't be able to do it.
On Thursday, February 3, 2011 at 8:40 PM, Ryan wrote:
After spending the last day ripping out rubberband and using straight
up ruby requests, I'm still able to reproduce the issue, but i've also
learned more about how to more-correctly integrate with elasticsearch.
My workaround for now is to not delete the entire index between test
runs. removing the mapping + documents and reindexing my test
fixtures is really all i need to do. Coming from a solr background,
the elasticsearch concept of one index with multiple types is easy to
overlook. i'm so used to nuking and repopulating the index between
test runs. any other recommendations or gotcha's for using
elasticsearch in a test environment would be appreciated!
Thanks again for your time.
On Feb 2, 4:51 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
Don't want to complicate things :), but it might still be an issue with ES as probably rubberband sends the requests faster then the curl script. If you add delays between operations, does it still happen?
On Thursday, February 3, 2011 at 12:01 AM, Ryan wrote:
excellent idea. my curl script is unable to reproduce the issue which
means that this is most likely an issue with rubberband sigh
On Feb 2, 2:43 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
Can you recreate it with a curl request?
On Wednesday, February 2, 2011 at 10:12 PM, Ryan wrote:
I've published a simple gist that exercises the issue here:
On Feb 2, 2:01 pm, Ryan ryan.son...@gmail.com wrote:
while testing a fix for the issue i reported here:http://groups.google.com/a/elasticsearch.com/group/users/browse_threa...
- delete existing index
- create new index with indexing options
- update index with custom mapping settings
- index all test data
- force index refresh
- perform search
executable testcase available here:https://github.com/wireframe/elastic_searchable/blob/master/test/test...