ElasticSearch accpeting all the fields as string

You need to define your mapping first before inserting the first document. If you did and if it still does not work, it's because you did something wrong.
If so, provide all the steps as described at About the Elasticsearch category