Hi all,

I setup an elasticsearch to search for my website and need to mapping some 
settings to index, this my settings config:

"settings": {
    "analysis": {
      "analyzer": {
        "my_analyzer": {
          "type": "custom",
          "tokenizer": "whitespace",
          "filter": [ "my_stop_word", "my_lowercase", "my_ascii_folding" ]
        }
      },
      "filter" : {
        "my_stop_word": {
          "type": "stop",
          "stopwords": "_english_"
        },
        "my_lowercase": {
          "type": "lowercase"
        },
        "my_ascii_folding": {
          "type": "asciifolding"
        }
      } 
   } 
}

This is mapping of index:

"properties" : {
      "actors" : {
        "type" : "string",
        "fields" : {
          "actors" : {
            "type" : "string",
            "omit_norms" : "true",
            "index_options" : "docs"
          },
          "my_analyzer_ngram" : {
            "type" : "string",
            "analyzer" : "my_analyzer",
            "include_in_all" : "false"
          }
        }
      },
   ....


It search ok, but do not action something like google when I type something 
wrong, google will remind "Did you mean that?". Example:

If I type "King of thrones" to search with my db, of course db doesn't has 
any film named it like this, I expect that search engine will give a clue 
"Game of thrones" for user. That's mean if user search do not exactly, my 
website still can give a true result for them.

Thanks in advanced

-- 
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/21d84d3b-d624-4c63-9329-e9c4059b0a73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to