pbojinov
10/28/2014 - 5:30 PM

Initial Elasticsearch settings

Initial Elasticsearch settings

{
  "settings": {
    "index": {
      "analysis": {
        "char_filter": {
          "ignore_chars": {
            "type": "mapping",
            "mappings": [
              "'=>",
              "\u2019=>",
              "`=>"
            ]
          },
          "strip_whitespace": {
            "type": "mapping",
            "mappings": [
              "\\u0020=>"
            ]
          }
        },
        "analyzer": {
          "case_insensitive_keyword_analyzer": {
            "char_filter": [
              "ignore_chars"
            ],
            "filter": [
              "standard",
              "asciifolding",
              "lowercase"
            ],
            "tokenizer": "keyword"
          },
          "en_analyzer": {
            "type": "custom",
            "char_filter": [
              "ignore_chars"
            ],
            "filter": [
              "standard",
              "asciifolding",
              "lowercase",
              "en_stop_filter",
              "en_stem_filter",
              "en_synonym"
            ],
            "tokenizer": "standard"
          },
          "tag_analyzer": {
            "type": "custom",
            "char_filter": [
              "strip_whitespace"
            ],
            "filter": [
              "standard",
              "asciifolding",
              "lowercase"
            ],
            "tokenizer": "standard"
          }
        },
        "filter": {
          "en_synonym": {
            "type": "synonym",
            "synonyms": [
              "hike,hiking"
            ]
          },
          "en_stop_filter": {
            "type": "stop",
            "stopwords": [
              "a",
              "an",
              "was",
              "with"
            ]
          },
          "en_stem_filter": {
            "type": "stemmer",
            "name": "minimal_english"
          }
        }
      }
    }
  }
}