@Indexed not working with spring data cassandra

Viewed 947

I am trying to use @Indexed for creating a secondary index on the field using spring data cassandra. But while querying on the field it is throwing exception No secondary indexes on the restricted columns support the provided operators:

Model:

 @Indexed(value = "bar")
 private String bar;

Query:

@Query("select * from foo where bar = ?0 allow filtering")
1 Answers
Related