# Can not get any result from indexed indice

**URL:** <https://discuss.elastic.co/t/can-not-get-any-result-from-indexed-indice/38386>\
**Category:** Elasticsearch\
**Created:** [January 5, 2016, 9:34am UTC](https://discuss.elastic.co/t/can-not-get-any-result-from-indexed-indice/38386 "2016-01-05T09:34:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weizhen\_Yan](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@Weizhen\_Yan](https://discuss.elastic.co/u/Weizhen_Yan)\
**Post date:** [January 5, 2016, 9:34am UTC](https://discuss.elastic.co/t/can-not-get-any-result-from-indexed-indice/38386/1 "2016-01-05T09:34:16Z")

</div>

I successfully created an index, the last few lines after index was created.  
`{ "create" : { "_index" : "nfltest", "_type" : "external", "_id" : "AVIRFrqdQfEj8oBbCsmr", "_version" : 1, "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 }, "status" : 201 } }, { "create" : { "_index" : "nfltest", "_type" : "external", "_id" : "AVIRFrqdQfEj8oBbCsms", "_version" : 1, "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 }, "status" : 201 } } ] }`

and then I run  
`curl 'localhost:9200/_cat/indices?v'`

which gives me the following result

`health status index pri rep docs.count docs.deleted store.size pri.store.size yellow open nfltest 5 1 44896 0 8.6mb 8.6mb`

but when I tried to run

`curl -XGET localhost:9200/nfltest/external/_bulk?pretty`

the result is  
`{ "_index" : "nfltest", "_type" : "external", "_id" : "_bulk", "found" : false }`

I also find this post :[Document found with \_search but not with GET](https://discuss.elastic.co/t/document-found-with--search-but-not-with-get/17719)

it did return result when I use \_search .  
any idea how can I fix it? Thank you

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [January 5, 2016, 10:27am UTC](https://discuss.elastic.co/t/can-not-get-any-result-from-indexed-indice/38386/2 "2016-01-05T10:27:49Z")

</div>

The bulk api is used to perform many index/delete operations in a single API call (see [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html) )

It is used with -XPOST or -XPUT.

What your command does is try to access a document with id "\_bulk" (see [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html) )

---

<div class="post-metadata">

**Author:** ![Weizhen\_Yan](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@Weizhen\_Yan](https://discuss.elastic.co/u/Weizhen_Yan)\
**Post date:** [January 6, 2016, 1:42am UTC](https://discuss.elastic.co/t/can-not-get-any-result-from-indexed-indice/38386/3 "2016-01-06T01:42:32Z")

</div>

Thanks ! I see why, but is there anyway that I can query the index generated by bulk api through the terminal?

Also I have some mapping issues, I was following this tutorial :[Data visualization with Elasticsearch aggregations and D3](https://www.elastic.co/blog/data-visualization-elasticsearch-aggregations)  
since it was published in 2014, and used the old version of ES, I rewrote the mapping file, the original mapping is [here](https://github.com/stormpython/nfl-elastic-aggregations/blob/master/dataset/mappings/nfl_mapping.json) .  
My mapping :

{  
"mappings": {

```
 "external": {

   "properties": {
         "gameid" : {
            "type" : "string",
            "index" : "not_analyzed",
            "store" : "true"
        },

        "qtr" : {
            "type" : "short",
            "store" : "true"
        },

        "min" : {
            "type" : "short",
            "store" : "true",
             "ignore_malformed": "true"
            },

        "sec" : {
            "type" : "short",
            "store" : "true"             
        },

        "off" : {
            "type" : "string"           
        },
        "def" : {
            "type" : "string"            
        },

        "down" : {
            "type" : "short",
            "store" : "true",
            "ignore_malformed": "true"
        },

        "togo" : {
            "type" : "short",
            "store" : "true",
            "ignore_malformed": "true"
        },

        "ydline" : {
            "type" : "short",
            "store" : "true",
            "ignore_malformed": "true"
        },

        "scorediff" : {
            "type" : "short",
            "store" : "true"
        },

        "series1stdn" : {
            "type" : "short",
            "store" : "true"
        },

        "description" : {
            "type" : "string",
            "store" : "true"
        },

        "scorechange" : {
            "type" : "short",
            "store" : "true"
        },

        "nextscore" : {
            "type" : "short",
            "store" : "true"
        },

        "teamwin" : {
            "type" : "short",
            "store" : "true"
        },

        "offscore" : {
            "type" : "short",
            "store" : "true"
        },

        "defscore" : {
            "type" : "short",
            "store" : "true"
        },

        "season" : {
            "type" : "date",
            "format" : "YYYY",
           "ignore_malformed": "true"
        }
    }
 }

```

}  
}  
`

I keep getting this error  
`{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:`  
I went through the break change document, still have no idea which parameter should be replaced or rewrite.

---

<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 5, 2017, 11:26pm UTC](https://discuss.elastic.co/t/can-not-get-any-result-from-indexed-indice/38386/4 "2017-07-05T23:26:52Z")

</div>


