# Create new index with especific documents

**URL:** <https://discuss.elastic.co/t/create-new-index-with-especific-documents/175374>\
**Category:** Elasticsearch\
**Created:** [April 4, 2019, 9:56am UTC](https://discuss.elastic.co/t/create-new-index-with-especific-documents/175374 "2019-04-04T09:56:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcarral](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dcarral](https://discuss.elastic.co/u/dcarral)\
**Post date:** [April 4, 2019, 9:56am UTC](https://discuss.elastic.co/t/create-new-index-with-especific-documents/175374/1 "2019-04-04T09:56:56Z")

</div>

Hi

I am triying to copy specific documents from one index to a new index by the following syntax:

curl -X POST "localhost:9200/\_reindex" -H 'Content-Type: application/json' -d'  
{  
"source": {  
"index": "2018.12.19",  
"type": "json",  
"query": {  
"match": {  
"Vendor" : "Cisco"  
}  
}  
},  
"dest": {  
"index": "2018.12.19new"  
}  
}'

But when I execute this, always shows that does not math anything and it does not create the new index, but if I search in Kibana in this index i can view events with Vendor:Cisco. Anyone knows why is happening this? Thanks

---

<div class="post-metadata">

**Author:** ![dcarral](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dcarral](https://discuss.elastic.co/u/dcarral)\
**Post date:** [April 10, 2019, 8:40am UTC](https://discuss.elastic.co/t/create-new-index-with-especific-documents/175374/2 "2019-04-10T08:40:53Z")

</div>

I solved this problem by removing "type": "json".

---

<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:** [May 8, 2019, 8:40am UTC](https://discuss.elastic.co/t/create-new-index-with-especific-documents/175374/3 "2019-05-08T08:40:54Z")

</div>

Closed on May 8, 2019, 8:40am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
