How a text-search result is rendered. The matches are the same across all of these — only the presentation differs.
from nutrient_sdk import SearchDisplayValues
| Name | Value | Description |
|---|---|---|
SearchDisplay.WINDOWS | 0 | Lines A-B header + the window text, blank-line separated. The default. |
SearchDisplay.TEXT | 1 | The window text only — no line headers. |
SearchDisplay.LINES | 2 | The 1-based line ranges only (e.g. 12-16), one per line. |
SearchDisplay.MATCHES | 3 | Match #N header + text, with a horizontal-rule separator between matches. A compact, numbered format for listing several results. |
SearchDisplay.FULL | 4 | Lines A-B (score S) header + text — scores included. |
SearchDisplay.JSON | 5 | A JSON array of {line, start, end, score, text} objects. |
Usage Example
from nutrient_sdk import SearchDisplay
# Access enum valuesvalue = SearchDisplay.WINDOWSprint(f"Value: {value}") # Output: Value: SearchDisplay.WINDOWSprint(f"Integer value: {value.value}") # Output: Integer value: 0