Fix for v1.2.0 dynamic scripting of ES

Version v1.2.0 of Elastic Search disables dynamic scripting by default, thus breaking the query that is used in `facets/registry/show-search query`