struct
Meilisearch::Crystal::SearchResponse(T)
Overview
Typed search results and response metadata.
Included Modules
- Enumerable(T)
Defined in:
meilisearch/crystal/search.crConstructors
-
.new(pull : JSON::PullParser)
Typed search results and response metadata.
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#each(& : T -> ) : Nil
Must yield this collection's elements to the block.
- #estimated_total_hits : Int64 | Nil
- #facet_distribution : Hash(String, Hash(String, Int64)) | Nil
- #facet_stats : Hash(String, FacetStats) | Nil
- #facets_by_index : Hash(String, JSON::Any) | Nil
- #hits : Array(T)
- #hits_per_page : Int32 | Nil
- #index_uid : String | Nil
- #limit : Int32 | Nil
- #offset : Int32 | Nil
- #page : Int32 | Nil
- #processing_time : Time::Span
- #query : String | Nil
- #total_hits : Int64 | Nil
- #total_pages : Int32 | Nil
Constructor methods inherited from struct Meilisearch::Crystal::Resource
new(pull : JSON::PullParser)new(*, __pull_for_json_serializable pull : JSON::PullParser) new
Macros inherited from struct Meilisearch::Crystal::Resource
define(name, &block)
define,
field(declaration)
field,
field!(declaration)
field!,
field?(declaration)
field?
Constructor Detail
Instance Method Detail
def each(& : T -> ) : Nil
#
Description copied from module Enumerable(T)
Must yield this collection's elements to the block.