cassandra-river icon indicating copy to clipboard operation
cassandra-river copied to clipboard

Tweaking data before indexing

Open saudurehman opened this issue 10 years ago • 1 comments

Hi, Is there a way to tweak the data before indexing. e.g change field names or skip few fields?

Regards Saud.

saudurehman avatar Aug 08 '14 14:08 saudurehman

The current version doesn't support tweaking the data before pushing to ES. But you can implement that here: https://github.com/eBay/cassandra-river/blob/master/src/main/java/org/elasticsearch/river/cassandra/CassandraRiver.java#L116 You will need to change cassandraData accordingly or another way is supporting CQL.

Mysql river supports it by passing SQL queries to river _meta: https://github.com/jprante/elasticsearch-river-jdbc

utsengar avatar Aug 08 '14 17:08 utsengar