Fixed few bugs in creating mapping, indexing in ES and embedding objects for application