https://github.com/hetao29/bleve-explorer-cn
bleve explorer support chinese
https://github.com/hetao29/bleve-explorer-cn
bleve blevesearch china chinese cn explorder
Last synced: about 1 month ago
JSON representation
bleve explorer support chinese
- Host: GitHub
- URL: https://github.com/hetao29/bleve-explorer-cn
- Owner: hetao29
- Created: 2018-03-12T12:27:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T06:33:48.000Z (about 7 years ago)
- Last Synced: 2025-01-24T15:41:43.730Z (3 months ago)
- Topics: bleve, blevesearch, china, chinese, cn, explorder
- Language: JavaScript
- Size: 15.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bleve-explorer-cn
bleve explorer support chinese
支持中文分词的 bleve 工具
## 参考连接
https://github.com/blevesearch/bleve-explorer## 安装方法
### 下载代码
```bash
git clone https://github.com/hetao29/bleve-explorer-cn.git bleve
cd bleve
```
### 安装依赖
```bash
go get github.com/blevesearch/bleve
go get github.com/syndtr/goleveldb
go get github.com/elazarl/go-bindata-assetfs
go get github.com/blevesearch/bleve/analysis
go get github.com/blevesearch/snowballstem
go get github.com/couchbase/moss
go get github.com/xgdapg/daemon
go get github.com/willf/bitset
go get github.com/gorilla/mux
go get github.com/hetao29/bleve-mapping-ui
go get github.com/hetao29/blevesearch-cn/scws
#如果中国用户打不开 golang.org,用如下方法
cd thirdpart/
tar xzf golang.org.tgz
cp -r golang.org $GOPATH/src
cd ..
```
### 安装scws
```bash
wget http://www.xunsearch.com/scws/down/scws-1.2.1.tar.bz2
tar xjf scws-1.2.1.tar.bz2
cd scws-1.2.1
./configure
make
sudo make install
sudo ln -s /usr/local/lib/libscws.so.1 /usr/lib/libscws.so.1
cd ..
```
### 编译
```bash
make
```
### 配置
```bash
mkdir log
mkdir data
```
### 启动
```bash
make start
cat log/*
```## 使用Web 接口
### 选择默认 cn 分析器
打开 http://localhost:8095/
新建 index,在Advanced -> Default Analyzer -> 选择 cn
就这样就 OK 了## 使用PHP API
### 参考方法
打开 php 目录下的文件 test.php 和 bleve.class.php