Reputation: 55
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")
Upvotes: 4
Views: 1113
Reputation: 112
This was an issue that was recently fixed
https://jira.spring.io/browse/DATACASS-213
Looks like upgrading to the latest version will get you the functionality you are looking for.
Upvotes: 0