TantivyEx.CustomCollector (TantivyEx v0.4.1)
View SourceCustom collectors and scoring functionality for TantivyEx.
Summary
Types
@type collector_resource() :: reference()
Functions
@spec clear_all(collector_resource()) :: :ok | {:error, term()}
@spec create_aggregation(collector_resource(), String.t(), list()) :: :ok | {:error, term()}
@spec create_filtering(collector_resource(), String.t(), list()) :: :ok | {:error, term()}
@spec create_scoring_function(collector_resource(), String.t(), String.t(), map()) :: :ok | {:error, term()}
@spec create_top_k(collector_resource(), String.t(), non_neg_integer(), String.t()) :: :ok | {:error, term()}
@spec get_results(collector_resource(), String.t()) :: {:ok, String.t()} | {:error, term()}
@spec list_collectors(collector_resource()) :: {:ok, String.t()} | {:error, term()}
@spec new() :: {:ok, collector_resource()} | {:error, term()}
@spec set_field_boosts(collector_resource(), String.t(), map()) :: :ok | {:error, term()}