Get Mapping API _all/type (0.9.0)

Hi,

curl -XGET 'http://localhost:9200/_all/tweet/_mapping' returns empty
sections for indices where this type is not found, shouldn't it return only
sections for indices where this type is found?

Say I have two indices: twitter and facebook. The twitter index has a type
tweet. Then the above curl command returns JSON with both indices "twitter"
: { the_mapping }, "facebook" : {} but the facebook is empty and the
twitter contains mapping for the tweet type.

Regards,
Lukas

I am not sure, its a matter of semantics. The way that I saw it was get me
the type mappings for all indices, so, for ones the mapping is not there,
then the json is empty. I am open to change it if you (and others) think it
make more sense to simply not return indices that do not container the
mapping as part of the response.

On Tue, Jul 20, 2010 at 11:38 PM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

curl -XGET 'http://localhost:9200/_all/tweet/_mapping' returns empty
sections for indices where this type is not found, shouldn't it return only
sections for indices where this type is found?

Say I have two indices: twitter and facebook. The twitter index has a type
tweet. Then the above curl command returns JSON with both indices "twitter"
: { the_mapping }, "facebook" : {} but the facebook is empty and the
twitter contains mapping for the tweet type.

Regards,
Lukas