Nutrient Web SDK
    Preparing search index...

    Enumeration SearchType

    Defines the search type used for text search operations or when creating redaction annotations based on text search.

    Index

    Enumeration Members

    Enumeration Members

    PRESET: "preset"

    The search type when you want to use the patterns provided by us. see NutrientViewer.SearchPattern for the list of all the patterns.

    REGEX: "regex"

    The search type when you want to search using regex. Regex syntax:

    TEXT: "text"

    This is the default search type. This is used when you want to search for strings/text.

    WORD_BASED: "word_based"

    Word-based search. Strips Unicode space variants (ASCII space, NBSP, em/en/thin spaces, ideographic space, etc.) plus tab, newline, and carriage return from both the query and the document text, then performs a substring match. Punctuation is preserved, so "Smith, John" matches "Smith,\nJohn" (only whitespace differs) while "Smith John" does NOT match "Smith, John" (the comma in the document has no counterpart in the query). Useful for matching long multi-line phrases that cross structural boundaries (tables, columns, page wraps) where the regex-based default cannot bridge intermediate formatting whitespace.