Data type for 3 - 8 dimensions in k-d tree?

You would need to create your own mapping type, which uses the Lucene apis to index such data. Elasticsearch does not expose any types with arbitrary or flexible dimensions.