Set custom analyzer on mapping #23
-
Hi, Great project, had this idea in mind for a long time myself but never came around to it. I was wondering if there is a possibility to set custom tokenizers/analyzers on the ES mapping that is generated from the model? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, Thank you! Because this library uses official ElasticSearch python library (uses AsyncElasticsearch from it), everything works possible with that also possible with this. You can add additional settings to any models with Hope that helps |
Beta Was this translation helpful? Give feedback.
Hi, Thank you!
Because this library uses official ElasticSearch python library (uses AsyncElasticsearch from it), everything works possible with that also possible with this.
You can add additional settings to any models with
ESConfig
class in thesettings
property: https://github.com/wallneradam/esorm?tab=readme-ov-file#model-settingsYou can set anything you found in ES documents: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-custom-analyzer.html
Hope that helps