Elastic changes #222
A bunch of changes to support improved elasticsearch interfacing. This set of changes should enable #219 to be done more easily as the types of queries we execute are separated out into their own functions. This also uses a base function called
Also introduced some changes to routing, via
It also includes a fix for #221 and many similar failures that were related to it.
@ajacques Let me know if this set of changes to the elastic class makes it easier to implement the performance tracing stuff we talked about. I tried to follow your design pattern a bit, but also took a couple liberties in what I think are improvements (i.e. not doing tracing at the raw query level but rather at the
…he future There is still work left to be done, I've only really implemented search and count right now. We also need to implement delete_by_query, index, and probably a few others. This commit also introduces a dedicated "browse" endpoint that is separate from the search endpoint. While similar in function, the search endpoint was getting unruly to manage both basic browse plus search. This allows us to simplify a bit both in the code as well as in the templates. There are definitely some abstractions left to do to simplify this further, though. Such as url generation for pagination, which is relatively similar all over the place and can be abstracted a little bit.