ArangoDB 建全文索引

dogear :) 2018-07-24 11:58:31
请问ArangoDB 怎样建全文索引?
在用java写入库程序,调用方法ensureFulltextIndex(arg0,arg1)来建全文索引,但报错参数设置有问题,详情见下侧,请问该方法怎么使用?或者有没有其他建立全文索引的方法?


//打开连接
final ArangoDB arangoDB=new ArangoDB.Builder().host(ip,port).user(username).passwors(password).build();
//创建ArangoDBCollection
ArangoDBCollection arango=arangoDB.db(dbName).collection(collectionName);
//设置全文索引的属性
FulltextIndexOptions indexOptions=new FulltextIndexOptions();
indexOptions.minLength(20);
//建立全文索引(airports是存储数据的List集合)
arango.ensureFulltextIndex((Iterable<String>)airports,indexOptions);


程序报错:
com.arangodb.ArangoDBException:Response:400,Error:10-bad parameter
...全文
217 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,209

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 其他数据库
社区管理员
  • 其他数据库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧