Support more complex pig schema than tsv or csv like

Hello, 

This patch can help for directly importing in elasticsearch result of more complex pig query than loading tsv or csv file.