خرید بک لینک

Vote count: 0

I am using the edge ngram analyzer. While checking the analyze API for the field I am getting the below result.

For example for the query "galaxy j7", it is analyzed as.

["g","ga","gal","gala","galax","galaxy","j","j7"]

I want data to be analyzed as below.

["g","ga","gal","gala","galax","galaxy","galaxy j","galaxy j7"]

How can this possible?

The setting in index is as follows .

{
  "analysis": {
    "filter": {
        "autocomplete_filter": {
            "type": "edge_ngram",
            "min_gram": "1",
            "max_gram": "20"
        }
    },
    "analyzer": {
        "autocomplete_analyzer": {
            "filter": ["lowercase", "autocomplete_filter"],
            "type": "custom",
            "tokenizer": "standard"
        }
    }
  }
}

and mapping of field is below.

{
    "title_suggest": {
        "type": "string",
        "index_analyzer": "autocomplete_analyzer",
        "search_analyzer": "standard",
        "search_quote_analyzer": "autocomplete_analyzer"
    }
}

asked 12 secs ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 18 مرداد 1395 ساعت: 15:42

صفحه بندی