level-sss

A level db Simple Search Server

level-sss

A Leveldb Simple Search Server. Using a dnode interface.

The server listens on two ports, the index port and the query port. Each port can have a secret to gain authorization to either index or search.

npm install sss -g
sss --index=[ --port=5000 --secret=foo ] --query[ --port=6000 --secret=bar ]
require('upnode').connect(5000, function (remote) {
  remote.init('foo', ready);
  function ready(errindex) {
    // index string, id 
    index('some string', 1);
  }
});
require('upnode').connect(6000, function (remote) {
  remote.init('bar', ready);
  function ready(errquery) {
    query('some string', function(errids) {
      // take ids and get data 
    });
  }
});

It does work, but will most likely have several bugs to work out.