I have a searchable Item
model in my Rails app.
I want to index the majority of those in ElasticSearch, EXCEPT the ones that fulfill some condition.
How can I do that?
Is overriding update_index
in the model an acceptable solution?
I know I could also index them all, and filter them out in the search. But they will never be searchable so I don't see a reason for indexing them at all.