_all still there (not removed on index level)

Hello,

Im trieing to optimize for space and disabled _all.

mapping looks like this:

curl 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

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

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

Do you have documents in that index with a doc_type that is not domain6? could you paste the output of

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

into a gist and share it here?

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"
            }
         }
      }
   }
}

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

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