4

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")
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
dgandhi91
  • 55
  • 8

1 Answers1

0

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.

dnellis74
  • 112
  • 4