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

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_call(msg, from, state)

GenServer.handle_call/3 callback

Handle request to query via SphinxQL

Link to this function

http_send(query)

Send a query using the Sphinx HTTP API (Experimental)

GenServer.init/1 callback

Start http service and initialize sphinx with connection options that will be used in every query

Link to this function

protocol_send(query)

Send a query using the native sphinx protocol

Link to this function

sphinxql_send(query)

Send a query using SphinxQL (Recommended)

Link to this function

start_link(list)

Specs

start_link(Keyword.t()) :: GenServer.on_start()