简书站内搜索
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data 优化 Dec 2, 2017
webui add webui Dec 2, 2017
.gitignore add webui Dec 2, 2017
README.md up Dec 2, 2017
crawler.py 优化 Dec 2, 2017
es_analyze.py
es_create_index.py
es_delete_index.py
es_hl_search.py 优化 Dec 2, 2017
es_index_data.py 优化 Dec 2, 2017
es_search.py 优化 Dec 2, 2017
simple_search.py rename file Dec 2, 2017

README.md

简书站内搜索

代码在 Python 2.7 中测试通过。

介绍

站内搜索实战

elastic search

elastic 版本 6.0.0.

下载最新的6.0.0版本。

安装ik分词:

./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.0.0/elasticsearch-analysis-ik-6.0.0.zip

或者下载下来解压到plugins目录。

启动:

./bin/elasticsearch

python 依赖

pip install elasticsearch==6.0.0 --user
pip install uniout --user
pip install requests --user
pip install beautifulsoup4 --user