title: Elasticsearch "pattern_replace", replacing whitespaces while analyzing
body: <p>Basically I want to remove all whitespaces and tokenize the whole string as a single token. (I will use nGram on top of that later on.)</p>
  
  <p>This is my index settings:</p>
  
  <pre><code>"settings": {
   "index": {
    "analysis": {
      "filter": {
        "whitespace_remove": {
          "type": "pattern_replace",
          "pattern": " ",
          "replacement": ""
        }
      },
      "analyzer": {
        "meliuz_analyzer": {
          "filter": [
            "lowercase",
            "whitespace_remove"
          ],
          "type": "custom",
          "tokenizer": "standard"
        }
      }
    }
  }
  </code></pre>
  
  <p>Instead of <code>"pattern": " "</code>, I tried <code>"pattern": "\\u0020"</code> and <code>\\s</code> , too.</p>
  
  <p>But when I analyze the text "beleza na web", it still creates three separate tokens: "beleza", "na" and "web", instead of one single "belezanaweb".</p>