mozilla/kitsune — pull request #534 by willkg (2012-03-05 22:10:52+00:00)
Title: 728422 search view split

This does a couple of things:

1. splits the search view into two separate and radically duplicative search views---one for Sphinx and one for ES

2. removes bits from the ES search view that were there to make it work with Sphinx

3. removes all the object_ids nonsense from the ES search view instead using counts and FauxDocumentList which "fakes" a big list composed of sublists which are represented as counts

The result of all this is (according to my ridiculously non-comprehensive siege fiddling) a dramatic reduction of the time it takes to render the ES search view. Prior to this, it took between .40 and .50 seconds to render. After this, it takes between .20 and .30 seconds to render.

Also, the code is shorter and less Rube Goldberg-esque.

Also, I added some TODO notes about things to trim later.

r?