class Elasticsearch::DSL::Search::Queries::FunctionScore

Overview

Function score compound query API: [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html]

Defined in:

elasticsearch-dsl/search/queries/compound/function_score.cr:5
elasticsearch-dsl/search/queries/compound/function_score.cr:92

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Instance Method Detail

def boost(boost : Type::Number | Union(String, Nil)) #

def boost_mode(boost_mode : Union(String, Nil)) #

def exp(field : String, &) #

[View source]
def exp(&) #

[View source]
def field_value_factor(&) #

[View source]
def function(function : Function | Array(CombinedFunction) | Union(Type::Number, Nil)) #

def function(&) #

[View source]
def function_field_name #

[View source]
def function_score(&) #

[View source]
def gauss(field : String, &) #

[View source]
def gauss(&) #

[View source]
def linear(field : String, &) #

[View source]
def linear(&) #

[View source]
def max_boost(max_boost : Union(Type::Number, Nil)) #

def min_score(min_score : Union(Type::Number, Nil)) #

def query(_q : Q.class, &) forall Q #

def query(query : Union(Base, Nil)) #

def random_score(&) #

[View source]
def score_mode(score_mode : Union(String, Nil)) #

def script_score(&) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def weight(weight : Type::Number) #

[View source]
def weight=(weight : Type::Number) #

[View source]