Voile.Search.Collections (Voile v0.1.27)

Copy Markdown View Source

Search context for collections with GLAM categorization support. Handles autocomplete suggestions and search functionality.

Summary

Functions

Advanced search with multiple parameters and filters. Focus on collections with GLAM type filtering.

Get search suggestions with enhanced metadata for autocomplete.

Full-text search across collections with pagination and filtering. Can handle both simple query strings and advanced search parameters.

Search collections by GLAM type specifically.

Search for collections with autocomplete suggestions.

Search items with filters and pagination.

Universal search across collections and items.

Functions

advanced_search(search_params, user_role \\ :public, opts \\ %{})

Advanced search with multiple parameters and filters. Focus on collections with GLAM type filtering.

get_search_suggestions(query, glam_type \\ "quick", limit \\ 8)

Get search suggestions with enhanced metadata for autocomplete.

search_collections(params \\ %{})

Full-text search across collections with pagination and filtering. Can handle both simple query strings and advanced search parameters.

search_collections_by_glam_type(query, glam_type, opts \\ [])

Search collections by GLAM type specifically.

search_collections_for_suggestions(query, opts \\ [])

Search for collections with autocomplete suggestions.

Returns up to limit collections that match the query string.

search_items(query, user_role \\ :public, opts \\ %{})

Search items with filters and pagination.

universal_search(query, user_role \\ :public, opts \\ %{})

Universal search across collections and items.