Skip to content
Snippets Groups Projects
Commit 82a8849a authored by Zhibin Mai's avatar Zhibin Mai
Browse files

update the doc to emphasize that it is required to do re-indexing

parent cf59576e
No related branches found
No related tags found
1 merge request!808Search text with special characters '_' and '.'
Pipeline #279568 failed
......@@ -67,6 +67,8 @@ is set by the Partition Service. Here is an example to enable this feature by se
If the property "custom-index-analyzer-enabled" is not created or the property value is set to "false" (String type) in the
given data partition, the default index analyzer will be applied to indexing and search.
After the feature is enabled, **it will require re-indexing kinds in the given partition in oder to adopt the custom analyzer.**
## Index AsIngestedCoordinates
......
......@@ -215,8 +215,7 @@ public class IndicesServiceImpl implements IndicesService {
}
private IndexSettingsAnalysis getCustomAnalyzer() {
List<String> mappings = List.of("_=>\\u0020");
MappingCharFilter mappingCharFilter = new MappingCharFilter.Builder().mappings(mappings).build();
MappingCharFilter mappingCharFilter = new MappingCharFilter.Builder().mappings("_=>\\u0020").build();
PatternReplaceCharFilter patternReplaceCharFilter = new PatternReplaceCharFilter.Builder().pattern("(\\D)\\.|\\.(?=\\D)").replacement("$1 ").build();
Map<String, CharFilter> charFilterMap = new HashMap<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment