While importing products, the custom taxonomies and fields that I have checked, are not being indexed in real time. Just part of the products are being indexed in real time.
I have to manually go to the send your data tab an click index selected post types, then the custom taxonomies and fields are indexed in Solr.