Skip to content

Commit

Permalink
Allow stopwords, shingle analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yugi-2 authored and ahadith committed Oct 21, 2024
1 parent dd107e7 commit ca1a515
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def create_and_update_index(index_name, documents, fields_to_not_index):
"filter": [
"lowercase",
"decimal_digit",
"arabic_stop",
"arabic_normalization",
"arabic_stemmer"
"arabic_stemmer",
"shingle"
]
}
},
Expand All @@ -63,6 +63,7 @@ def create_and_update_index(index_name, documents, fields_to_not_index):
"type": "shingle",
"min_shingle_size": 2,
"max_shingle_size": 3,
"output_unigrams": True
},
"synonyms_filter": {
"type": "synonym",
Expand Down

0 comments on commit ca1a515

Please sign in to comment.