eBay / cassandra-river

Cassandra river for Elastic search.
Apache License 2.0
38 stars 25 forks source link

Tweaking data before indexing #3

Open saudurehman opened 10 years ago

saudurehman commented 10 years ago

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

Regards Saud.

utsengar commented 10 years ago

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