mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 12:56:53 +00:00
spell correct and add single quotes
This commit is contained in:
parent
37782c1745
commit
eeeb29f900
@ -5,7 +5,7 @@ An analyzer of type `custom` that allows to combine a `Tokenizer` with
|
||||
zero or more `Token Filters`, and zero or more `Char Filters`. The
|
||||
custom analyzer accepts a logical/registered name of the tokenizer to
|
||||
use, and a list of logical/registered names of token filters.
|
||||
The name of the custom analyzer must not start mit "_".
|
||||
The name of the custom analyzer must not start with "_".
|
||||
|
||||
The following are settings that can be set for a `custom` analyzer type:
|
||||
|
||||
|
@ -253,7 +253,7 @@ public class AnalysisService extends AbstractIndexComponent implements Closeable
|
||||
|
||||
for (Map.Entry<String, NamedAnalyzer> analyzer : analyzers.entrySet()) {
|
||||
if (analyzer.getKey().startsWith("_")) {
|
||||
throw new IllegalArgumentException("analyzer name must not start with _. got \"" + analyzer.getKey() + "\"");
|
||||
throw new IllegalArgumentException("analyzer name must not start with '_'. got \"" + analyzer.getKey() + "\"");
|
||||
}
|
||||
}
|
||||
this.analyzers = ImmutableMap.copyOf(analyzers);
|
||||
|
Loading…
x
Reference in New Issue
Block a user