Sonic Channel
Rust client for sonic search backend.
We recommend you start with the documentation.
Installation
Add sonic-channel = { version = "1.0" }
as a dependency in Cargo.toml
.
Cargo.toml
example:
[]
= "my-crate"
= "0.1.0"
= ["Me <user@rust-lang.org>"]
[]
= { = "1.0", = ["ingest"] }
Add default-features = false
to dependency, if you want to exclude default
search
channel.
Example usage
Search channel
Note: This example requires enabling the search
feature, enabled by default.
use *;
Ingest channel
Note: This example requires enabling the ingest
feature.
use *;
Control channel
Note: This example requires enabling the control
feature.
use *;
Available features
- default - ["search"]
- search - Add sonic search mode with methods
- ingest - Add sonic ingest mode with methods
- control - Add sonic control mode with methods