Is it not possible to discover an underscore mapping?

Version: AWS v2.5.0 (OpenSearch_2_5_R20230308-P4)

Describe the issue: If you create a mapping with a value like “_anyname” you can’t filter the documents by the value in the Discovery. And also you will see it in the left panel with an “ask mark (?)”:

image

In case you try force the search by editing DSL the filter will be created like “_anyname: Error” and don’t filter anything. The DSL query that I am using:

Query DSL:
{
  "query": {
    "match_phrase": {
      "_manualParse": true
    }
  }
}

But you could filter the values using the DevTools using the following query:

GET <index>/_search
{
  "size": 1,
  "query": {
    "match": {
      "_manualParse": true
    }
  }
}

So, I think the underscore make a kind “special” mapping, but is this mentioned in the documentation? Also, is it possible to enable filters in the Discovery?

@jtwalters I’ve just tested your scenario and got this message in Discovery

image

As you can see in the screenshot below the field doesn’t appear in the index pattern definition.

As per next screenshot this field can’t be indexed, therefore can’t be searched in the Discovery

image

You could report it in GitHub as missing information in OpenSearch documentation.