Closed joseriop closed 6 years ago
With your code it remains to create index files but thank you.
You are right, index files are also created in excluded data centers, but data will not be indexed in these data centers, so files are going to be empty.
I was looking the changes in github when this functionality was implemented and I think it was implemented in this way, but maybe I'm wrong.
This way if you run a query in any of the excluded data centers you will get an empty result but the query will be executed successfully.
This is the link I found explaining that: https://github.com/Stratio/cassandra-lucene-index/issues/44. This was extracted from there: "The index will be created in these data centers, but all the write operations will be ignored. This way, ignored data centers will be able to route index searches to other data centers, but they wont consume resources writing. Also, reads with LOCAL* consistency in excluded data centers will return an empty list of results, whereas LOCAL* reads in not excluded data centers will return the proper results."
Thanks Eduardo for reviewing my changes.
Feature "excluded_data_centers" was not working, although user specified this option in index creation the index was created in all datacenters.