Cassandra select query ERROR: No secondary indexes on the restricted columns support the provided operators:

Cassandra select query ERROR: No secondary indexes on the restricted columns support the provided operators:

我在 razor 中执行了这样的查询 sql。

SELECT * FROM number_log where phonenumber = '6032969081' and is_active='1' ALLOW FILTERING

它给我一个错误,比如 -

ERROR: No secondary indexes on the restricted columns support the provided operators: 'SELECT * FROM number_log where phonenumber = '6032969081' and is_active='1' ALLOW FILTERING'

谁能帮帮我 -

检查一下....它可以帮助您解决您的问题。 http://tonylixu.blogspot.in/2015/04/cassandra-no-secondary-indexes-on.html

尝试在您的列上添加索引....

CREATE INDEX ON <b>table_name</b> (<b>field_name</b>);