SonicClient (sonic_client v0.1.0) View Source

Client for Sonic search backend

Link to this section Summary

Functions

Send PING message to Sonic server

Start Connection with Sonic Server.

Stop connection with Sonic server

Link to this section Functions

Send PING message to Sonic server

iex> {:ok, conn} = SonicClient.start(127.0.0.1, 1491, "search")
iex> {:ok, conn} = SonicClient.ping(conn)
PONG
Link to this function

push(conn, collection, object, term)

View Source
Link to this function

start(host, port, mode, password)

View Source

Start Connection with Sonic Server.

Examples

iex> SonicClient.start(127.0.0.1, 1491, "search", "secret")
{:ok, conn}

Stop connection with Sonic server