Git Product home page Git Product logo

rscoordinator's Introduction

Release CircleCI Forum Discord

RSCoordinator - Distributed RediSearch

RSCoordinator is an add-on module that enables scalable distributed search over RediSearch.

How It Works

RSCoordinator runs alongside RediSearch, and distributes search commands across the cluster. It translates its own API, which is similar to RediSearch's API, into a set of RediSearch commands, sends those to the appropriate shards, and merges the responses to a single one.

Example Usage

# Creating an index
> FT.CREATE myIdx SCHEMA foo TEXT 

# Adding a document
> FT.ADD myIdx doc1 1.0 FIELDS foo "hello world"

# Searching
> FT.SEARCH myIdx "hello world"

The syntax of all these commands is identical to that of the equivalent RediSearch commands.

Building RSCoordinator

RSCoordinator has no dependencies, and only needs gcc/lldb, automake, libtool and libc to build it. It includes libuv internally, and uses the provided internal library.

Building is simply done by running:

$ mkdir build

$ python configure.py

$ cd build

$ make

This creates two files called module-oss.so and module-enterprise.so in /build, and from here on, you can run it inside redis oss cluster.

Running RSCoordinator

To load the module just add the loadmodule parameter:

loadmodule /path/to/oss-module.so

The module automatically discovers the Redis cluster topology and distributes the search commands accordingly. Notice that it is possible to give a global password that will be used to connect to other shards using OSS_GLOBAL_PASSWORD module argument, i.e:

loadmodule /path/to/oss-module.so OSS_GLOBAL_PASSWORD <password>

Commands

See http://redisearch.io/Commands/

rscoordinator's People

Contributors

bnoordhuis avatar piscisaureus avatar saghul avatar ry avatar pietern avatar dvirsky avatar mnunberg avatar indutny avatar meirshpilraien avatar tjfontaine avatar badboy avatar ashtul avatar rafie avatar cjihrig avatar mattsta avatar isaacs avatar txdv avatar santigimeno avatar erickt avatar antirez avatar schlamar avatar gkorland avatar henryrawas avatar mmalecki avatar mscdex avatar jedisct1 avatar imran-iq avatar orangemocha avatar avianflu avatar jbarz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.