# I can't import the data form the source code which downloads from the book

**URL:** <https://discuss.elastic.co/t/i-cant-import-the-data-form-the-source-code-which-downloads-from-the-book/18780>\
**Category:** Elasticsearch\
**Created:** [July 22, 2014, 3:50am UTC](https://discuss.elastic.co/t/i-cant-import-the-data-form-the-source-code-which-downloads-from-the-book/18780 "2014-07-22T03:50:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qazfj8282](https://avatars.discourse-cdn.com/v4/letter/q/e95f7d/32.png) [@qazfj8282](https://discuss.elastic.co/u/qazfj8282)\
**Post date:** [July 22, 2014, 3:50am UTC](https://discuss.elastic.co/t/i-cant-import-the-data-form-the-source-code-which-downloads-from-the-book/18780/1 "2014-07-22T03:50:02Z")

</div>

First, I'm sorry for my poor English.  
I used the elasticsearch 0.20.0  
I want to import the data,  
**the mapping code:**  
{  
"book" : {  
"\_index" : {  
"enabled" : true  
},  
"\_id" : {  
"index": "not\_analyzed",  
"store" : "yes"  
},  
"properties" : {  
"author" : {  
"type" : "string",  
"index" : "analyzed"  
},  
"characters" : {  
"type" : "string",  
"index" : "analyzed"  
},  
"copies" : {  
"type" : "long",  
"ignore\_malformed" : false  
},  
"otitle" : {  
"type" : "string",  
"index" : "analyzed"  
},  
"tags" : {  
"type" : "string",  
"index" : "not\_analyzed"  
},  
"title" : {  
"type" : "string",  
"index" : "analyzed"  
},  
"year" : {  
"type" : "long",  
"ignore\_malformed" : false,  
"index" : "analyzed"  
},  
"available" : {  
"type" : "boolean",  
"index" : "analyzed"  
}  
}  
}  
}  
**the documents code:**  
{ "index": {"\_index": "library", "\_type": "book", "\_id": "1"}}  
{ "title": "All Quiet on the Western Front","otitle": "Im Westen nichts Neues","author": "Erich Maria Remarque","year": 1929,"characters": ["Paul Bäumer", "Albert Kropp", "Haie Westhus", "Fredrich Müller", "Stanislaus Katczinsky", "Tjaden"],"tags": ["novel"],"copies": 1, "available": true, "section" : 3}  
{ "index": {"\_index": "library", "\_type": "book", "\_id": "2"}}  
{ "title": "Catch-22","author": "Joseph Heller","year": 1961,"characters": ["John Yossarian", "Captain Aardvark", "Chaplain Tappman", "Colonel Cathcart", "Doctor Daneeka"],"tags": ["novel"],"copies": 6, "available" : false, "section" : 1}  
{ "index": {"\_index": "library", "\_type": "book", "\_id": "3"}}  
{ "title": "The Complete Sherlock Holmes","author": "Arthur Conan Doyle","year": 1936,"characters": ["Sherlock Holmes","Dr. Watson", "G. Lestrade"],"tags": [],"copies": 0, "available" : false, "section" : 12}  
{ "index": {"\_index": "library", "\_type": "book", "\_id": "4"}}  
{ "title": "Crime and Punishment","otitle": "Преступлéние и наказáние","author": "Fyodor Dostoevsky","year": 1886,"characters": ["Raskolnikov", "Sofia Semyonovna Marmeladova"],"tags": [],"copies": 0, "available" : true}  
**the two files is downloads from the URL discribe in the book.**  
**this is the processes:**  
\<nabble\_img src="es.jpg" border="0"/\>  
but it only have the mapping structure, but not have the data。  
I don't no why, I am a beginner..  
Thank you for helping me!!HELP!!

---

<div class="post-metadata">

**Author:** ![qazfj8282](https://avatars.discourse-cdn.com/v4/letter/q/e95f7d/32.png) [@qazfj8282](https://discuss.elastic.co/u/qazfj8282)\
**Post date:** [July 22, 2014, 3:55am UTC](https://discuss.elastic.co/t/i-cant-import-the-data-form-the-source-code-which-downloads-from-the-book/18780/2 "2014-07-22T03:55:48Z")

</div>

\<nabble\_img src="eee.png" border="0"/\>  
this is the data view of the es

---

<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, 1:14am UTC](https://discuss.elastic.co/t/i-cant-import-the-data-form-the-source-code-which-downloads-from-the-book/18780/3 "2017-07-06T01:14:21Z")

</div>


