Reindex with sub set of properties

Hello everyone,

I'm a little blocked while trying to reindex from an old index into a new
one.
I got two questions please :

  1. We can reindex the whole index from one to another, but if the new index
    contains only a subset of properties in the old index (typically if we want
    to modify the mapping of the old index by deleting one or several
    properties), do we have some solutions for that?
    In fact, we can use the following script to get all existing records, but
    how can i tell ES to only extract a subset of the properties instead of the
    whole list?

GET _search?scroll=1m
{
"query": {
"match_all": {}
}
}

  1. Another problem is, if in the old index, more than one type exist,
    instead of reindex the whole index, can we just reindex data from an old
    type to a new type (in the same index)?

Thank you very much.
(Appreciate if you can also give me some snippets of code)

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a7536989-7e59-4e24-89d6-12a5f26b0f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.