Giza.Service (giza_sphinxsearch v1.0.7)
The Giza genserver worker. Handles result calling that can be supervised and handled upon any issue or crash. Note that multiple workers would be needed for concurrency. Avoid using this service if your requests are already concurrent and you don't want to set up multiple service workers, as Sphinx can handle many concurrent requests and bottlenecks should be avoided.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
GenServer.handle_call/3 callback
Send a query using the Sphinx HTTP API (Experimental)
GenServer.init/1 callback
Send a query using the native sphinx protocol
Send a query using SphinxQL (Recommended)
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
handle_call(msg, from, state)
GenServer.handle_call/3 callback
Handle request to query via SphinxQL
http_send(query)
Send a query using the Sphinx HTTP API (Experimental)
init(_)
GenServer.init/1 callback
Start http service and initialize sphinx with connection options that will be used in every query
protocol_send(query)
Send a query using the native sphinx protocol
sphinxql_send(query)
Send a query using SphinxQL (Recommended)
start_link(list)
Specs
start_link(Keyword.t()) :: GenServer.on_start()