Refine. Search
(Refine v0.1.3)
Copy Markdown
Search functions.
Summary
Types
@type create_facets_table_return() :: {:ok, String.t()} | {:error, :column_not_found, String.t()} | {:error, :column_names_not_unique} | {:error, :facets_table_exists, String.t()} | {:error, :identity_column_already_exists, String.t()} | {:error, :identity_column_invalid_type, String.t()} | {:error, :identity_column_not_found, String.t()} | {:error, :invalid_table_name, String.t()} | {:error, :table_names_not_unique} | {:error, Exception.t()}
@type database_option() :: {:repo, repo()} | postgrex_option()
@type facets_config() :: [facet_config()]
@type repo() :: module()
@type search_option() :: {:query, Ecto.Query.t()} | {:facets, map()} | {:result_fields, [atom()]} | {:limit, integer()} | {:offset, integer()} | {:repo, repo()} | postgrex_option()
@type search_return() :: {:ok, search_return_data()} | {:error, Exception.t()}
Functions
@spec search(facets_table_config(), [search_option()]) :: search_return()
See: Refine.search/2.