see http://www.elasticsearch.org/guide/reference/mapping/root-object-type/
basically given match and some other criteria, you can set the indexing properties - if you know the field names coming in.