How could I do to set es query case sensitive?

Please format your code using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Please edit your post.

You can change the analyzer or the type of the field. For example, use a keyword type instead of text.
If you are using all defaults, then you can probably do:

GET _search
{
  "query": {
    "match": {
      "name.keyword": "3g"
    }
  }
}