FUD
FUD

Reputation: 5184

Cassandra Custom Secondary Index

This seems to be a mystery in cassandra, According to official documentation, one can create index on a column by using a custom indexer class

CREATE CUSTOM INDEX ON users (email) USING 'path.to.the.IndexClass';

But I could not find any documentation regarding the interface/class to be implemented/extended to do this and how to configure cassandra to find the class?

I wanted to write a custom indexer which could skip indexing rows based on conditions/options.

Upvotes: 5

Views: 4100

Answers (3)

vikram modhugu
vikram modhugu

Reputation: 21

Stratio's Cassandra Lucene Index is a plugin which supports custom indexes in cassandra, you can find the required documentation on how to work with custom indexes.

Upvotes: 2

zaletniy
zaletniy

Reputation: 549

Here you can find example of implementation:

http://tuplejump.github.io/stargate/

https://github.com/tuplejump/stargate-core

Upvotes: 1

Mikhail Stepura
Mikhail Stepura

Reputation: 3374

Here what I've found https://issues.apache.org/jira/browse/CASSANDRA-6480 So you have to implement a subclass of org.apache.cassandra.db.index.SecondaryIndex and make sure that class is on the classpath for your Cassandra

Upvotes: 2

Related Questions