TantivyEx.Distributed.SearchNode (TantivyEx v0.4.1)
View SourceGenServer representing a single search node in the distributed cluster.
Each SearchNode manages its own Tantivy searcher instance and handles search requests, health monitoring, and connection management.
Summary
Functions
Returns a specification to start this module under a supervisor.
Get the current health status.
Get node statistics.
Perform a health check on the node.
Check if the node is currently active.
Perform a search on this node.
Set the node's active status.
Start a search node GenServer.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec get_health_status(pid()) :: health_status()
Get the current health status.
Get node statistics.
@spec health_check(pid()) :: :ok
Perform a health check on the node.
Check if the node is currently active.
@spec search(pid(), term(), non_neg_integer(), non_neg_integer()) :: {:ok, map()} | {:error, term()}
Perform a search on this node.
Set the node's active status.
Start a search node GenServer.