# Reindex with sub set of properties

**URL:** <https://discuss.elastic.co/t/reindex-with-sub-set-of-properties/20116>\
**Category:** Elasticsearch\
**Created:** [October 7, 2014, 1:43pm UTC](https://discuss.elastic.co/t/reindex-with-sub-set-of-properties/20116 "2014-10-07T13:43:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jac](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Jac](https://discuss.elastic.co/u/Jac)\
**Post date:** [October 7, 2014, 1:43pm UTC](https://discuss.elastic.co/t/reindex-with-sub-set-of-properties/20116/1 "2014-10-07T13:43:55Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/a7536989-7e59-4e24-89d6-12a5f26b0f54%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:57am UTC](https://discuss.elastic.co/t/reindex-with-sub-set-of-properties/20116/2 "2017-07-06T00:57:52Z")

</div>


