templates.SpanContentTemplateSchema
- class templates.SpanContentTemplateSchema(*args, **kwargs)
Span Content template
- Parameters:
span_text_field (str) – Span field
span_field (str) – Field from which spans are extracted
operator ({"MATCHES", "CONTAINS", "STARTS", "ENDS"}) – Operator
value (str) – Pattern
regex (bool, default False) – If True, the pattern is treated as a regex
case_sensitive (bool, default False) – Case sensitive or not
tokenize (bool, default False) – Tokenize or not