Skip to content
A search engine based on Node.js and LevelDB
JavaScript HTML
Find file

README.md

NPM version NPM downloads MIT License Build Status

Deploy

npm install -g norch

var norch = require('norch')();

Put stuff in

curl --form document=@reuters-000.json http://localhost:3030/indexer

Search for hits

http://localhost:3030/search?q={"query":{"*":["usa"]}}

Make autosuggest

http://localhost:3030/matcher?match={"beginsWith":"usa"}

Replicate an index

curl http://localhost:3030/snapshot -o snapshot.gz
curl -X POST http://anotherIndex:3030/replicate --data-binary @snapshot.gz -H "Content-Type: application/gzip"

Command line startup options

 $ norch --help

   Usage: norch [options]

   Options:

    -h, --help                   output usage information
    -V, --version                output the version number
    -p, --port <port>            specify the port, defaults to 3030
    -i, --indexPath <indexPath>  specify the name of the index directory, defaults to norch-index
    -l, --logLevel <logLevel>    specify the loglevel- silly | debug | verbose | info | warn | error
    -s, --logSilent <logSilent>  silent mode
    -c, --cors <items>           comma-delimited list of Access-Control-Allow-Origin addresses in the form of "http(s)://hostname:port" (or "*")

About Norch

Norch.js is an experimental search engine built with Node.js and search-index featuring, Full text search, Stopword removal, Faceting, Filtering, Matching (Autosuggest), Fielded search, Field weighting, Relevance weighting (tf-idf), Paging (offset and resultset length), Virtualisation (see virtual-norch)

Mailing list: norchjs@googlegroups.com - subscribe by sending an email to norchjs+subscribe@googlegroups.com

License

MIT, Copyright (c) 2013 Fergus McDowall

Something went wrong with that request. Please try again.