LuckySearch::SimpleQuery(T, K)
Inherits Reference < Object
Constants
COUNT = "count"
HITS = "hits"
ID = "_id"
SCORE = ["_score"]
SOURCE = "_source"
TOTAL = "total"
TYPE = "_document_type"
VALUE = "value"
Constructors
new(elastic_index : String | Nil = nil, document_name : String | Nil = nil)
SourceInstance methods
generate_body(builder)
Sourcequery(q : String, params = {} of Symbol => String, filters = nil)
Sourcesearch(builder, &block : Proc(T, T | Nil))
Query elasticsearch with a query builder object, accepts a formatter block Allows annotation/conversion of records using data from the model. Nils are removed from the list.