Select using Domain Index returns no results after materialized view refresh
We have a Domain Index with Indextype CTXSYS.CONTEXT created on a Materialized View.
The Materialized view is a join MV and a complete refresh is run on it nightly.
After each refresh, any sql that uses the Domain Index returns no rows. The same query with a "like" operator works fine.
The index is in a valid state, though.
If the domain index is dropped and created again after the MV refresh, it works fine.
How do we make sure the index works even after the complete refresh on the MV?