Thank You !!!!
On Jun 23, 9:54 am, Igor Motov i...@motovs.org wrote:
No, if you specify the index name (parameter indexKey) in
prepareDeleteMapping, it will delete the type only from the index specified
in indexKey.If you want to delete this type from all indices in the cluster, don't
specify indexKey:client1.admin().indices().prepareDeleteMapping().setType(typeKey).execute() .actionGet();
On Thu, Jun 23, 2011 at 12:43 PM, slavag slav...@gmail.com wrote:
Cool, Thank You for answer,
Question about delete mapping - if there another index with the same
type will it be also deleted ?On Jun 23, 7:43 am, Igor Motov i...@motovs.org wrote:
As Clint already mentioned, you can delete mapping for the type and it
will
delete all data from this type as well:client1.admin().indices().prepareDeleteMapping(indexKey
).setType(typeKey).execute().actionGet();or you can execute deleteByQuery with matchAllQuery filtered by the type.
On Thu, Jun 23, 2011 at 9:56 AM, slavag slav...@gmail.com wrote:
Yes, I agree with you, but this can be doe while the original data is
exist, and if it not - then little bit problematic
So, any suggestion how can I delete such index and type ?On Jun 23, 4:57 am, Shay Banon shay.ba...@elasticsearch.com wrote:
One note, many times it might make sense to actually drop the index
and
rebuild it.On Thursday, June 23, 2011 at 11:38 AM, Clinton Gormley wrote:
On Wed, 2011-06-22 at 21:13 -0700, slavag wrote:
Hi,
I found that via admin interface I can delete index.But what about deleting index of particular type only, how that
could
be done, without specifying the id of the documents ?You can - just delete the mapping
Elasticsearch Platform — Find real-time answers at scale | Elastic.
..
clint