@Indexed does not work with spring cassandra data

I am trying to use @Indexedto create a secondary index in a field using spring data cassandra. But when querying in a field, this exception is thrown. No secondary indexes in restricted columns support the provided operators:

Model:

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

Query:

@Query("select * from foo where bar = ?0 allow filtering")
+4
source share
1 answer

This was a problem that was recently fixed.

https://jira.spring.io/browse/DATACASS-213

It seems like upgrading to the latest version will give you the functionality you are looking for.

0
source

Source: https://habr.com/ru/post/1677891/


All Articles