# \_all still there (not removed on index level)

**URL:** <https://discuss.elastic.co/t/-all-still-there-not-removed-on-index-level/90172>\
**Category:** Elasticsearch\
**Created:** [June 20, 2017, 11:17pm UTC](https://discuss.elastic.co/t/-all-still-there-not-removed-on-index-level/90172 "2017-06-20T23:17:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sascha\_a](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sascha\_a](https://discuss.elastic.co/u/sascha_a)\
**Post date:** [June 20, 2017, 11:17pm UTC](https://discuss.elastic.co/t/-all-still-there-not-removed-on-index-level/90172/1 "2017-06-20T23:17:01Z")

</div>

Hello,

Im trieing to optimize for space and disabled \_all.

mapping looks like this:

curl [http://10.0.0.3:9200/productsv6/domain6/\_mappings](http://10.0.0.3:9200/productsv6/domain6/_mappings)  
{  
"productsv6": {  
"mappings": {  
"domain6": {  
"\_all": {  
"enabled": false  
},

if i now use  
curl [http://10.0.0.3:9200/productsv6/domain6/\_search?q=\_all:samsung](http://10.0.0.3:9200/productsv6/domain6/_search?q=_all:samsung)

at least theres no results returned. so far so good

But if i use  
curl [http://10.0.0.3:9200/productsv6/\_search?q=\_all:samsung](http://10.0.0.3:9200/productsv6/_search?q=_all:samsung)

it returns me all results related to samsung

any idears?

Yes i even put \_all enabled:false on index level / during index creation.

Seems bugged for me?

Running on latest docker container 5.4

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [June 21, 2017, 8:26am UTC](https://discuss.elastic.co/t/-all-still-there-not-removed-on-index-level/90172/2 "2017-06-21T08:26:30Z")

</div>

Do you have documents in that index with a doc\_type that is not `domain6`? could you paste the output of

```auto
curl -XGET http://10.0.0.3:9200/productsv6

```

into a [gist](http://gist.github.com) and share it here?

---

<div class="post-metadata">

**Author:** ![sascha\_a](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sascha\_a](https://discuss.elastic.co/u/sascha_a)\
**Post date:** [June 21, 2017, 1:16pm UTC](https://discuss.elastic.co/t/-all-still-there-not-removed-on-index-level/90172/3 "2017-06-21T13:16:08Z")

</div>

no documents outside of the domain6

```
{
   "productsv6":{
      "aliases":{

      },
      "mappings":{
         "domain6":{
            "_all":{
               "enabled":false
            },
            "properties":{
               "author":{
                  "type":"keyword"
               }
             , ....
            }
         },
         copys of domain6 named 1-10
      },
      "settings":{
         "index":{
            "number_of_shards":"5",
            "translog":{
               "durability":"async"
            },
            "provided_name":"productsv6",
            "query":{
               "default_field":"title"
            },
            "creation_date":"1498005962695",
            "number_of_replicas":"1",
            "uuid":"JbUETeqfR-SAtN_rHFEIwA",
            "version":{
               "created":"5040199"
            }
         }
      }
   }
}
```

---

<div class="post-metadata">

**Author:** ![sascha\_a](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sascha\_a](https://discuss.elastic.co/u/sascha_a)\
**Post date:** [June 21, 2017, 1:37pm UTC](https://discuss.elastic.co/t/-all-still-there-not-removed-on-index-level/90172/4 "2017-06-21T13:37:26Z")

</div>

thanks the hint for documents outside the \_types helped, had a bug where the document was put outside of all mapped \_types.

can be closed

---

<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 19, 2017, 1:37pm UTC](https://discuss.elastic.co/t/-all-still-there-not-removed-on-index-level/90172/5 "2017-07-19T13:37:27Z")

</div>

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