Comse is a lightweigt common search engine,and it support fulltext search(index cross search and index sum search).
Main technology:
- dynamically increseaing or shrinking index data structures(for fast insert,delete index)
- use linked list to save index,and every linked node has one adaptive size linear table(for fast search index)
- use json data via http post to Interact(easy to use curl、python、php etc...)
- Other include (1. multithread to search 2. asynchronous io event with libevent 3. use pthread_rwlock_t lock)
If First build:
git clone https://github.com/dodng/comse.git
cd comse/core
sh -x build.sh
else:
cd comse/core
make clean;make
cd comse/service
sh -x run.sh
-
load-all data(just load one time,default path: ./index/load.json.file)
-
Search data use search_ip and search_port,Other add,del,dump-all data use update_ip and update_port!
python example:
- insert data
- delete data
- and search data
- or search data
- dump-all data(default path: ./index/dump.json.file)
cd comse/examples ; python client_update.py message.add
cd comse/examples ; python client_update.py message.del
cd comse/examples ; python client_search.py message.and-search
cd comse/examples ; python client_search.py message.or-search
cd comse/examples ; python client_update.py message.dump-all