One parameter: PatternTokenizerFactory and regex input to whatever shape you need.
Second option: use the copyfield command, setting the maxChars parameter to 10.
Third option: handle this before your data makes it equal.
The second option is probably the simplest and allows you to keep the original value of the field unchanged.
source
share