Oh, I see. This is the service. I don't think this is a service. Some of this should be directive code, some should be in the Search controller, and they should work together.

Services are for singletons, and should generally touch the DOM.

Annotator is a bit of an exception, and I'm working to reduce that.