Question: When I use `Ctrl+C` on an image on my PC and `Ctrl+V` on an WYSIWUG editor, it creates an image converted via base64. But this changes from browser and the OS I use. 

What I want is to know if there are some ways to prevent it via Javascript before the `Ctrl+V` has effect?

Answer: 
This worked for me:

```
GET /_search
{
  "query": {
    "wildcard": {
      "lastname": "aya*"
    }
  }
}

```

I had wasted many hours until I read this online:

> 
> ...if you search a not\_analyzed field and use wildcards, you MUST NOT
> include any capital letters in your query...
> 
> 
> 

The whole time it was not working because I was searching for e.g. `Aya*`. Soon as I converted it to lower case `aya*` it worked.
I'm guessing your `lastname` field is probably `analyzed` and thus the token that was indexed is `ayala` and not `Ayala`. So since `wildcard` queries are not analyzed you need to specify the search term in lowercase:

Try this:

```
POST /_search
{
    "query":{       
    "filtered" : {
      "filter" : {
        "bool" : {
          "should" :
          {
            "wildcard":{"lastname" : "aya*" }
          }      
        }
      }
    }
    }
}

```