{
    "settings": {
      "analysis": {
        "filter": {
          "english_stop": {
            "type":       "stop",
            "stopwords":  "_english_"
          },
          "english_stemmer": {
            "type":       "stemmer",
            "language":   "english"
          },
          "english_possessive_stemmer": {
            "type":       "stemmer",
            "language":   "possessive_english"
          }
        },
        "tokenizer": {
          "ngram_tokenizer": {
            "type": "ngram",
            "min_gram": 2,
            "max_gram": 3,
            "token_chars": ["letter", "digit"]
          }
        },
        "english": {
          "tokenizer":  "ngram_tokenizer",
          "filter": [
            "english_possessive_stemmer",
            "lowercase",
            "english_stop",
            "english_stemmer"
          ]
        }
      }
    },
    "mappings": {
      "pages": {
        "properties": {
          "path": {
            "type": "text",
            "fields": {
              "raw": {
                "type": "text",
                "analyzer": "keyword"
              },
              "en": {
                "type": "text",
                "analyzer": "english"
              }
            }
          },
          "body": {
            "type": "text",
            "fields": {
              "en": {
                "type": "text",
                "analyzer": "english"
              }
            }
          },
          "username": {
            "type": "keyword"
          },
          "comment_count": {
            "type": "integer"
          },
          "bookmark_count": {
            "type": "integer"
          },
          "like_count": {
            "type": "integer"
          },
          "created_at": {
            "type": "date",
            "format": "dateOptionalTime"
          },
          "updated_at": {
            "type": "date",
            "format": "dateOptionalTime"
          }
        }
      }
    }
  }
  
Add mapping file for plain elasticsearch
Add mapping file for plain elasticsearch

