Simple version of patterned_text with a single doc value for arguments (#129292)

Initial version of patterned_text mapper. Behaves similarly to match_only_text. This version uses a single SortedSetDocValues for a template and another for arguments. It splits the message by delimiters, the classifies a token as an argument if it contains a digit. All arguments are concatenated and inserted as a single doc value. A single inverted index is used, without positions. Phrase queries are still possible, using the SourceConfirmedTextQuery, but are not fast.
This commit is contained in:
Parker Timmins 2025-06-25 21:31:32 -05:00 committed by GitHub
parent 2df9dd42fb
commit 9aaba25d58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 2045 additions and 4 deletions

View file

@ -124,7 +124,8 @@ public class HighlightPhase implements FetchSubPhase {
if (fieldNameContainsWildcards) {
if (fieldType.typeName().equals(TextFieldMapper.CONTENT_TYPE) == false
&& fieldType.typeName().equals(KeywordFieldMapper.CONTENT_TYPE) == false
&& fieldType.typeName().equals("match_only_text") == false) {
&& fieldType.typeName().equals("match_only_text") == false
&& fieldType.typeName().equals("patterned_text") == false) {
continue;
}
if (highlighter.canHighlight(fieldType) == false) {