I am adding data in event item:versionAdded
and when adding new version then it is calling item:versionAdded
event again. For solving this issue I am adding data under:
using (new EventDisabler())
{
--adding record--
}
However, it is adding data but when we are trying to fetch those data from Content Search API then it is not showing full data. Index is showing half data and when we publish data then it is showing whole data.
Here, I am asking how we can sync index with EventDisabler()
Thanks in advance !!