Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json Bleve命令行示例_Json_Go_Command Line_Full Text Search_Bleve - Fatal编程技术网

Json Bleve命令行示例

Json Bleve命令行示例,json,go,command-line,full-text-search,bleve,Json,Go,Command Line,Full Text Search,Bleve,是否有详细说明Bleve CLI使用的示例 函数和参数记录在网站上,但实际上,很难知道方法签名和必填字段是什么 通过谷歌搜索,我发现了以下Github要点: 但它似乎有点过时了。即使在从中复制了我能复制的内容之后,我仍然会遇到一些无法解释的错误消息(例如,错误:错误创建索引:无法创建新索引,路径已经存在) 任何信息都会有帮助 谢谢。对我有用 $go版本 go版本go1.11.6 linux/amd64 $go-get-u github.com/blevesearch/bleve/。。。 $sh

是否有详细说明Bleve CLI使用的示例

函数和参数记录在网站上,但实际上,很难知道方法签名和必填字段是什么

通过谷歌搜索,我发现了以下Github要点:

但它似乎有点过时了。即使在从中复制了我能复制的内容之后,我仍然会遇到一些无法解释的错误消息(例如,
错误:错误创建索引:无法创建新索引,路径已经存在

任何信息都会有帮助

谢谢。

对我有用

$go版本
go版本go1.11.6 linux/amd64
$go-get-u github.com/blevesearch/bleve/。。。
$sh test-bleve-search.sh
+set-e
+猫
+rm-fr test.bleve
+bleve create./test.bleve—映射./mapping.json
+猫
+bleve index test.bleve test.json
索引:测试
+bleve查询测试。bleve位置。状态:在
1个匹配,显示1到1,耗时173.341µs
1.测试(0.306853)
位置、状态
在里面
用固定的脚本

#/垃圾箱/垃圾箱
集合x
set-e
#创建自定义映射

cat>mapping.json test.json谢谢您的回答。就我而言,我认为这个问题与环境有关。部分原因是$GOPATH问题,另一个让我无法使用符号链接的奇怪问题。