Cassandra的Stratio Lucene:&x27;包含';搜索返回';[';

Cassandra的Stratio Lucene:&x27;包含';搜索返回';[';,lucene,stratio,Lucene,Stratio,我正在使用“search()”准备lucene搜索条件。我正在使用contains,如下所示: Search searchCondition = search().filter(match("customer_id", customerId)) .filter(range("some_timestamp").lower(minTimestamp.toString()).upper(maxTimestamp.toString())) .filter(contains("types"

我正在使用“search()”准备lucene搜索条件。我正在使用contains,如下所示:

Search searchCondition = search().filter(match("customer_id", customerId))
    .filter(range("some_timestamp").lower(minTimestamp.toString()).upper(maxTimestamp.toString()))
    .filter(contains("types", getListOfTypes()))
    .sort(field("some_timestamp").reverse(false));
getListOfTypes()返回一个列表

但当我搜索().build()时,下面是我得到的查询:

{
   "filter":[
{"type":"match","field":"customer_id","value":1},
{"type":"range","field":"some_timestamp","lower":"2017-03-20 03:23:00.0","upper":"2017-03-30 03:23:00.0"},
{"type":"contains","field":"types","values":[["ABC over 90%","PQR","XYZ"]]}
],
"sort":[{"type":"simple","field":"some_timestamp","reverse":false}]
}
这里的问题是“[]”和“]]”。这不会导致返回任何行。 我暂时用单方括号代替这些


但是这个问题的解决方案是什么。

我使用java8解决了这个问题:

 getListOfTypes().stream().toArray()