dgandhi91
dgandhi91

Reputation: 55

@Indexed not working with spring data cassandra

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

Answers (1)

dnellis74
dnellis74

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

Related Questions