Hi All,
I have a db with index for pages in a site where i index using title and page content, trying to add a suggester search from the page content , i could get a keyword suggester using completion suggesters
{
"djcms": {
"settings": {
"index": {
"number_of_shards": "5",
"provided_name": "djcms",
"creation_date": "1510160781495",
"analysis": {
"filter": {
"autocomplete_filter": {
"token_chars": [
"letter",
"digit",
"punctuation",
"symbol"
],
"min_gram": "3",
"type": "edgeNGram",
"max_gram": "20"
}
},
"analyzer": {
"autocomplete": {
"filter": [
"lowercase",
"asciifolding",
"autocomplete_filter"
],
"type": "custom",
"tokenizer": "standard"
},
"whitespace_analyzer": {
"filter": [
"lowercase",
"asciifolding"
],
"type": "custom",
"tokenizer": "whitespace"
}
}
},
"number_of_replicas": "1",
"uuid": "9C3mAB5RR2eyYFHBVNN_sg",
"version": {
"created": "5040399"
}
}
}
}
}
mapping ={
"djcms": {
"mappings": {
"djcmspage": {
"properties": {
"content": {
"type": "text",
"analyzer": "autocomplete",
"search_analyzer": "whitespace_analyzer"
},
"content_suggest": {
"type": "completion",
"analyzer": "autocomplete",
"search_analyzer": "whitespace_analyzer"
},
"title": {
"type": "text"
},
"url": {
"type": "text"
}
}
}
}
}
}
suggest_dict = {
"content-suggest": {
"text": "capture",
"completion": {
"field": "content_suggest",
"fuzzy": {
"fuzziness": 2
}
}
}
}
This works for single word , but if i search for "capture data" phrase i t doesn't
Also tokeniser also doesn't work on completion type fields.
can you anyone help on this