lib/elastic_engine/search/params.rb
# Apply a query string search based on config
Apply a query string search based on config
Apply a query string search based on config
def build_query_string_search(facet_klass)
        return unless query_string && search.facet_klass.respond_to?(:query_string_search) && search.facet_klass.query_string_search
        fields = search.facet_klass.query_string_search.fetch(:field)
        search.multi_match(fields, query_string) if fields.is_a?(Array) && fields.any?
        search.match(fields, query_string) if fields.is_a?(String)
      end
def build_query_string_search ( facet_klass ) return unless query_string && search . facet_klass . respond_to? ( :query_string_search ) && search . facet_klass . query_string_search fields = search . facet_klass . query_string_search . fetch ( :field ) search . multi_match ( fields , query_string ) if fields . is_a? ( Array ) && fields . any? search . match ( fields , query_string ) if fields . is_a? ( String ) end
Apply a query string search based on config
Apply a query string search based on config
facet_klass
<not_specific>