【文件属性】:
文件名称:sphinx:被遗弃,请参阅https
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-18 03:21:42
Go
关于
用于Go编程语言的sphinx(全文搜索服务器)客户端软件包。
安装
go get github.com/yunge/sphinx
测验
在mysql中将“ documents.sql”导入“测试”数据库;
在sphinx.conf中更改mysql密码;
将test.xml复制到sphinx.conf中的默认目录: cp test.xml /usr/local/sphinx/var/data
索引测试数据: indexer -c sphinx_lib_path/sphinx.conf --all --rotate
使用“ sphinx.conf”启动sphinx searchd: searchd -c sphinx_lib_path/sphinx.conf
然后“ cd”到sphinx_lib_path:
go test
例子
import (
"github.
【文件预览】:
sphinx-master
----test.xml(1018B)
----sphinx_test.go(7KB)
----documents.sql(2KB)
----README.markdown(1KB)
----sphinxql_test.go(5KB)
----sphinxql.go(11KB)
----sphinx.conf(2KB)
----sphinx.go(37KB)