Method Regex
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
Regex(string, string)
Matches documents with a term of the text field that matches
pattern as a whole (Rust regex syntax, anchored at both ends):
Regex("title", "gr.*s") matches the term grapes. Terms are the indexed,
analyzed tokens (lowercase with the default tokenizer).
public static RegexQuery Regex(string field, string pattern)
Parameters
Returns
Remarks
An invalid pattern throws TantivyException with InvalidArgument when the query runs. All matches score the same.