elasticsearch-analyzers

Create an EdgeNGram analyzer supporting both sides in Azure Search

99封情书 提交于 2019-12-11 15:27:52
问题 When defining a custom analyzer for Azure Search there is an option of defining a token filter from this list. I am trying to support search of both prefix and infix. For example: if a field contains the name: 123 456, I want the searchable terms to contain: 1 12 123 23 3 4 45 456 56 6 When using the EdgeNGramTokenFilterV2 which seems to do the trick, there is an option of defining a "side" property, but only "front" and "back" are supported, not both. the "front" (default) value generates

How to configure multiple analyzers for one field in elasticsearch?

前提是你 提交于 2019-12-08 05:15:44
问题 I am trying to add path hierarchy analyzer to one field in my type. I want to configure path analyzer and reverse path analyzer on same field so I can get normal path and reverse path of the one field. for eg. path="/angular/directive/structural" I want to configure this path field such as whenever I analyze this field, I should get tokens in normal order and reverse order if I specify reverse. Below is my mapping. PUT /elastic_course { "settings": { "analysis": { "analyzer": { "path_analyzer

How to configure multiple analyzers for one field in elasticsearch?

做~自己de王妃 提交于 2019-12-06 16:12:16
I am trying to add path hierarchy analyzer to one field in my type. I want to configure path analyzer and reverse path analyzer on same field so I can get normal path and reverse path of the one field. for eg. path="/angular/directive/structural" I want to configure this path field such as whenever I analyze this field, I should get tokens in normal order and reverse order if I specify reverse. Below is my mapping. PUT /elastic_course { "settings": { "analysis": { "analyzer": { "path_analyzer": { "tokenizer": "path_tokenizer" }, "reverse_path_analyzer": { "tokenizer": "reverse_path_tokenizer"