Fixes bug 838747 - Made the list of indexes generation for elasticsearch configurable in the middleware.
Fixed search to make it work with the new configmanized middleware.