Skip to content

Commit

Permalink
renaname arabic, use custom analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yugi committed Feb 22, 2024
1 parent 378a833 commit dd107e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def create_and_update_index(index_name, documents, fields_to_not_index):
"stemmer",
],
},
"rebuilt_arabic": {
"custom_arabic": {
"tokenizer": "standard",
"char_filter": ["html_strip"],
"filter": [
Expand Down Expand Up @@ -96,7 +96,7 @@ def create_and_update_index(index_name, documents, fields_to_not_index):
},
}
}
| {"arabicText": {"type": "text", "analyzer": "arabic"}}
| {"arabicText": {"type": "text", "analyzer": "custom_arabic"}}
}
if es_client.indices.exists(index=index_name):
es_client.indices.delete(index=index_name)
Expand Down

0 comments on commit dd107e7

Please sign in to comment.