0.0.1 • Published 10 years ago
level-sss v0.0.1
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.
install and start servers
npm install sss -g
sss --index=[ --port=5000 --secret=foo ] --query[ --port=6000 --secret=bar ]
sss index server client example
require('upnode').connect(5000, function (remote) {
remote.init('foo', ready);
function ready(err, index) {
// index string, id
index('some string', 1);
}
});
sss query server client example
require('upnode').connect(6000, function (remote) {
remote.init('bar', ready);
function ready(err, query) {
query('some string', function(err, ids) {
// take ids and get data
});
}
});
In Development Mode
It does work, but will most likely have several bugs to work out.
0.0.1
10 years ago