Neuroplastic::Elastic(T)
Inherits Reference < Object
Constants
AGGS = "aggregations"
COUNT = "count"
HITS = "hits"
ID = "_id"
Log = ::Log.for("search")
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)
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.