highlights and weights
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user