【发布时间】:2018-08-23 10:15:15
【问题描述】:
我的日期时间列仅用于排序目的,其余的聚类键用于过滤。但是如果不给日期时间赋予等效值,我就无法按其他列进行过滤。如果我使用 Apache solr,我可以解决我的问题吗?
我的桌子:
create table search_by_company_id_status
(
agency_id text,
datetime timestamp,
createid text,
status text,
primary key ((agency_id),datetime,status,createid)) with clustering order by (datetime desc);
我正在尝试的查询:
select * from search_by_agency_id_status where agency_id='125' and datetime>'2018-02-02 12:00:00.000' and recordstatus='7' and createid='id234';
【问题讨论】: