Fixed error on <resource>/_search route
Refactored interactions to use query parsing and aggregate pipeline