mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-27 17:10:22 -04:00
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:
parent
2df9dd42fb
commit
9aaba25d58
18 changed files with 2045 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue