Indexing a large number of fields

I am trying to bulk index a cluster with a large number of fields and everytime i send a request, it results in a timeout.
I read somewhere this could happen because of mapping explosion.
I am using the JAVA API and would like to know how can one disable indexing of some particular fields in the cluster while the others are indexed normally.

thank you!