Skip to content

erickt/rust-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-elasticsearch is a Rust language binding for the Elasticsearch fulltext search engine.

Installation

Install for the users of rust-elasticsearch:

% cargo install zmq
% cargo install uri
% cargo install elasticseach

Install for developers:

% git clone https://github.com/erickt/rust-elasticsearch
% cd rust-elasticsearch
% make deps
% make

Setting up Elasticsearch

rust-elasticsearch uses the transport-zeromq plugin to connect with Elasticsearch. Unfortunately it can be a little tricky to set up. Here is how I got it to work. First, install the Java Zeromq bindings:

% wget https://github.com/zeromq/jzmq/zipball/v1.0.0
% unzip zeromq-jzmq-semver-0-gdaf4775
% cd zeromq-jzmq-8522576
% ./configure
% make
% make install

Next, download Elasticsearch:

% wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.4.zip
% unzip elasticsearch-0.19.4.zip

After that, install the transport-zeromq plugin:

% cd elasticsearch-0.19.4
% ./bin/plugin -install tlrx/transport-zeromq/0.0.3

Finally, start Elasticsearch. You may need to explicitly set the shared library path. On Linux, do:

% cd $elasticsearch_dir
% export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib
% ./bin/elasticsearch -f

And Macs, do:

% cd $elasticsearch_dir
% export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib
% ./bin/elasticsearch -f

About

Rust library to interact with ElasticSearch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages