14 Comments

Elasticsearch ReindexI was initially under the impression Elasticsearch had a 'magic' command to make this work, as you suggested I needed to write a script (I chose ruby) to search and scroll each result and push the data to the new index. Thanks!

Feb16

comment

Elasticsearch ReindexOk, thats actually up to the point that I got stuck, I have the data - my question is how do i put it into the new index?

Jasmine and Jquery, loading a JSON fileThanks for the response, I am still getting the same result, the json file path I have been using is a local file, not called through a server, is that potentially an issue ?

Dec12

comment

Lambda BehaviourOkay, so I think my problem was less about understanding lambdas and more about not really understanding closures, so closures carry the most recent variable state, the non-object function call would just re-evaluate from scratch.

Rspec test case for array methodIt also just occurred to me... in order for this to work I suppose it would be necessary to make my method an extension of the Array class, not a class of its own? Otherwise I would have to new it up everytime?

Jul3

comment

Rspec test case for array methodSorry about the missing ends, noob omission. The class name is a fluke, I just called it that cause of its function. The for instead of each was me playing with code I found in the ruby pickaxe book. I realize the code is all redundant, I am just trying to cement the basics. The input for factory is (supposed to be) something like sentence = this_array_of_strings.make_sentence_from