Two-level index ElasticSearch

Is it possible to create index of structure like this:

localhost:9200/shopname/products/product

where "shopname/products" is composite index, and "product" is type?

Thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hello,

No, it's not possible, as far as I know.

But you can put a field in your documents to filter out different types,
for example to have

localhost:9200/shopname/products

and then "document_type": "product" in the document itself. That's actually
how Elasticsearch does it with types in the background. The type is an
additional field, as all documents from various types will end up in the
same Lucene indices.

Best regards,
Radu

http://sematext.com/ -- ElasticSearch -- Solr -- Lucene

On Fri, Apr 26, 2013 at 10:03 AM, Grina guchiom@gmail.com wrote:

Is it possible to create index of structure like this:

localhost:9200/shopname/products/product

where "shopname/products" is composite index, and "product" is type?

Thanks!

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks!!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.