struct Meilisearch::Crystal::Query

Overview

A typed POST-search request. Nil fields are omitted from its JSON body.

Defined in:

meilisearch/crystal/search.cr

Constructors

Instance Method Summary

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

def self.new(pull : JSON::PullParser) #

A typed POST-search request. Nil fields are omitted from its JSON body.


[View source]
def self.new(q : String | Nil = nil, index_uid : String | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil, page : Int32 | Nil = nil, hits_per_page : Int32 | Nil = nil, filter : String | Array(String) | Nil = nil, facets : Array(String) | Nil = nil, attributes_to_retrieve : Array(String) | Nil = nil, attributes_to_crop : Array(String) | Nil = nil, crop_length : Int32 | Nil = nil, crop_marker : String | Nil = nil, attributes_to_highlight : Array(String) | Nil = nil, highlight_pre_tag : String | Nil = nil, highlight_post_tag : String | Nil = nil, show_matches_position : Bool | Nil = nil, sort : Array(String) | Nil = nil, matching_strategy : MatchingStrategy | Nil = nil, show_ranking_score : Bool | Nil = nil, show_ranking_score_details : Bool | Nil = nil, ranking_score_threshold : Float64 | Nil = nil, attributes_to_search_on : Array(String) | Nil = nil, hybrid : Hybrid | Nil = nil, vector : Array(Float64) | Nil = nil, retrieve_vectors : Bool | Nil = nil, locales : Array(String) | Nil = nil, federation_options : FederationOptions | Nil = nil, distinct : String | Nil = nil) #

[View source]

Instance Method Detail

def attributes_to_crop : Array(String) | Nil #

def attributes_to_highlight : Array(String) | Nil #

def attributes_to_retrieve : Array(String) | Nil #

def attributes_to_search_on : Array(String) | Nil #

def crop_length : Int32 | Nil #

def crop_marker : String | Nil #

def distinct : String | Nil #

def facets : Array(String) | Nil #

def federation_options : FederationOptions | Nil #

def filter : String | Array(String) | Nil #

def highlight_post_tag : String | Nil #

def highlight_pre_tag : String | Nil #

def hits_per_page : Int32 | Nil #

def hybrid : Hybrid | Nil #

def index_uid : String | Nil #

def limit : Int32 | Nil #

def locales : Array(String) | Nil #

def matching_strategy : MatchingStrategy | Nil #

[View source]
def offset : Int32 | Nil #

def page : Int32 | Nil #

def q : String | Nil #

def ranking_score_threshold : Float64 | Nil #

def retrieve_vectors : Bool | Nil #

def show_matches_position : Bool | Nil #

def show_ranking_score : Bool | Nil #

def show_ranking_score_details : Bool | Nil #

def sort : Array(String) | Nil #

def vector : Array(Float64) | Nil #