Elistix v1.0.1 Elistix.Query

This module makes all the operations related to the queries in Elasticsearch.

All the functions receive an attribute ‘query’ that is a JSON (the same you can copy from the ElasticSearch docs).

Summary

Functions

To search by any query

Functions

search(name, type, query)

To search by any query.

Attributes are two strings with the name of the index and the type and the third attribute is a JSON string that contains the query you want to execute.

Examples

‘{

 "query" : {
   "multi_match" : {
     "query" : "params["q"]",
     "fields" : ["field_one", "field_two"]
   }
 }

}’