我在我的機器上安裝了Data-Sax Cassandra社區版(2.2.3),我想使用全文搜索。 我已經下載了Stratio Lucene索引2.2.3,並將其複製到卡桑德拉lib文件夾,但是當我執行命令來創建索引,如下Cassandra與Stratio lucene索引
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文件夾,然後再次嘗試沒有任何成功。
乾杯, jereesh
是否有任何特定的原因使用版本2.2.3?如果不切換到最新版本,您可以創建一個使用底層CFS存儲索引的Solr節點,速度更快。 – mbaxi
@mbaxi,2.2.3是穩定版嗎? –
對不起,我對與Solr內置集成的企業版(v4.8)感到困惑。 – mbaxi