highlights and weights

This commit is contained in:
2023-04-13 09:46:53 +02:00
parent d95fa436eb
commit 4c92e00899
2 changed files with 17 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ import elasticsearch
settings = {
"index":
{"max_ngram_diff": 3
{"max_ngram_diff": 7
},
"analysis": {
"analyzer": {
@@ -19,10 +19,10 @@ settings = {
"my_tokenizer": {
"type": "ngram",
"min_gram": 3,
"max_gram": 6,
"max_gram": 10,
"token_chars": [
"letter",
"digit"
"digit", "symbol"
]
}
}
@@ -55,7 +55,7 @@ mapping = {
"published": {"type": "date", "format": "date_optional_time"},
"updated_at": {"type": "date", "format": "date_optional_time"},
"raw": {
"type": "text",
"type": "text",
"index": False
},
}