【发布时间】:2015-12-07 07:14:59
【问题描述】:
我已经在我的机器上安装了 Data-Sax Cassandra 社区版(2.2.3),我想使用全文搜索。 我已经下载了 Stratio lucene index 2.2.3 并将其复制到 Cassandra lib 文件夹,但是当我执行以下命令创建索引时
CREATE CUSTOM INDEX tweets_index ON tweets (lucene)
USING 'com.stratio.cassandra.lucene.Index'
WITH OPTIONS = {
'refresh_seconds' : '1',
'schema' : '{
fields : {
id : {type : "integer"},
user : {type : "string"},
body : {type : "text", analyzer : "english"},
time : {type : "date", pattern : "yyyy/MM/dd", sorted : true},
place : {type : "geo_point", latitude:"latitude", longitude:"longitude"}
}
}'
};
我得到异常ServerError:
ErrorMessage code=0000 [Server error] message="java.lang.RuntimeEx
ception: java.lang.ClassNotFoundException:
com.stratio.cassandra.lucene.Index"
我也尝试使用 maven 构建它并更新安装,但没有成功。此外,我将 jar 文件复制到我的 JDK ext 文件夹并再次尝试,但没有成功。
干杯, 杰瑞斯
【问题讨论】:
-
使用 2.2.3 版本有什么具体原因吗?如果不切换到最新版本,您可以创建一个使用底层 CFS 存储索引的 Solr 节点,并且速度更快。
-
@mbaxi , 2.2.3 是稳定版吧?
-
是的,对不起,我对提供与 Solr 的内置集成的企业版 (v4.8) 感到困惑。
标签: cassandra lucene full-text-search stratio cassandra-lucene-index