Using the _mapping api

Hi Jettro,

On Tue, Jul 9, 2013 at 9:15 AM, Jettro Coenradie <jettro.coenradie@gmail.com

wrote:

Hi Radu, thank you for your answer. I know there is more to it. But what
if you do this:

http://localhost:9200/_all/blog-item/_mapping?pretty

It seems to me that it will just return the first "blog-item" mapping it
finds. For example, if you have two indices with this mapping, the command
above will only return one of them. And you probably wouldn't know which
index it comes from.

Than you do not get back the index, so you get back the type without the
index it belongs to. I am not sure, is it possible to create a type without
an index and reuse the same type among indexes?

No, you can't create a type without an index. But you can use templates
where you can automatically create the same mappings to all new indices
that match the template pattern:

In any case, it just makes doing my generic stuff a bit harder, in the end
I'll go around it.

Can you share what is the generic stuff you're trying to do here?

Best regards,
Radu

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

--
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.