一个简单、高效的关键词匹配服务
_|_|_|_| _| _|
_| _|_| _| _|_|_|
_|_|_| _|_|_|_| _| _| _|_|
_| _| _| _| _|_|
_| _|_|_| _| _| _|_|_|
$ git clone --recursive https://github.com/imaben/felis.git
$ cd felis/src
$ make
$ ./build/felis --help
Usage: felis [options]
Options:
-h <host> listen host
-p <port> port number
-d daemon mode
-t <threads> threads count
-o <timeout> http request timeout second
-l <logfile> log file
-m <debug|notice|warn|error>
-H show help
GET http://felishost/dict
[
{
"name": "dict1",
"count": 100
},
{
"name": "dict2",
"count": 1000
}
]
POST http://felishost/dict
{
"name": "dictname"
}
{
"result": true
}
POST http://felishohst/dict/{dictname}
{
"word": "hello",
"ext": "extention string"
}
{
"result": true
}
POST http://felishost/match/{dictname}
{
"content": "hello world"
}
[
{
"word": "hello",
"ext": null
}
]