ElasticSearch and doc type

I read ElasticSearch online guide but found no information on why
index name and doc type both exist. I wonder if doc type is a way to
separate different indexes but all of them share the same logical
name.

I think that I am wrong because ElasticSearch's /data directory shows
nothing about it. E.x:

/usr/local/es/data/elasticsearch/nodes/0/indices/myindex/0/

Just index name is used to name a directory

Anyone kindly explain it to me?

Thanks

Dinh

Index names are different indices. Types are just syntactic sugar to add separation between types of documents. If you know Lucene, type is just a field on a doc.
On Wednesday, April 6, 2011 at 7:33 AM, pcdinh wrote:

I read Elasticsearch online guide but found no information on why
index name and doc type both exist. I wonder if doc type is a way to
separate different indexes but all of them share the same logical
name.

I think that I am wrong because Elasticsearch's /data directory shows
nothing about it. E.x:

/usr/local/es/data/elasticsearch/nodes/0/indices/myindex/0/

Just index name is used to name a directory

Anyone kindly explain it to me?

Thanks

Dinh