We are programmatically creating items and using Solr indexes so we want to disable solr indexing whenever we create an item.
We tried following code to disable during item creation Item.Add()
Sitecore.Configuration.Settings.Indexing.Enabled = false;
But it does not stop indexing and still happen in Solr. What can be the possible reason?