Hi Michael. 

I'm on windows so I'm using sense rather than curl. here are my requests

PUT /travelshopoffers/_settings
{
      "analysis": {
         "filter": {
            "nGram_filter": {
               "type": "nGram",
               "min_gram": 2,
               "max_gram": 20,
               "token_chars": [
                  "letter",
                  "digit",
                  "punctuation",
                  "symbol"
               ]
            }
         },
         "analyzer": {
            "nGram_analyzer": {
               "type": "custom",
               "tokenizer": "whitespace",
               "filter": [
                  "lowercase",
                  "asciifolding",
                  "nGram_filter"
               ]
            },
            "whitespace_analyzer": {
               "type": "custom",
               "tokenizer": "whitespace",
               "filter": [
                  "lowercase",
                  "asciifolding"
               ]
            }
         }
      }
}

PUT /travelshopoffers/geo/_mapping
  {    
    "mappings": {
    "geo": {
         "_all": {
            "index_analyzer": "nGram_analyzer",
            "search_analyzer": "whitespace_analyzer"
         },
         "properties": {
            "name": {
               "type": "string",
               "include_in_all": true
            },
            "lat": {
               "type": "string",
               "index": "no"
            },
            "lng": {
               "type": "string",
               "index": "no"
            },
            "countryCode": {
               "type": "string",
               "index": "not_analyzed",
               "include_in_all": false
            },
            "countryName": {
               "type": "string",
               "index": "not_analyzed",
               "include_in_all": false
            }
         }
      }
   }
}

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ff9e6ec7-f77c-4c24-ba06-9b2eef9de9ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to