I am using Grails-ElasticSearch Plugin(0.0.2.5). I want to add a constraint to my domain instances before it is indexed in ElasticSearch.
Example:- I have a domain class A with a field 'status', i want to add an abstraction between Database and ElasticSearch i.e, all the instances should be populated in the Database but instances with ACTIVE status should be sent to elasticsearch.
Please suggest if this is possible?
Thanks, Karan