How aggressively a text search filters weak matches. The mode resolves to a BM-25 relevance floor: hits below it are dropped, so the caller gets a real answer or nothing.
from nutrient_sdk import SearchModeValues
| Name | Value | Description |
|---|---|---|
SearchMode.STRICT | 0 | High floor — only confident matches. Best for “does the document say X?”. |
SearchMode.BALANCED | 1 | Default floor — filters common-word-only noise, keeps genuine matches. |
SearchMode.LENIENT | 2 | No floor — always return the top results, however weak. Recall-first. |
Usage Example
from nutrient_sdk import SearchMode
# Access enum valuesvalue = SearchMode.STRICTprint(f"Value: {value}") # Output: Value: SearchMode.STRICTprint(f"Integer value: {value.value}") # Output: Integer value: 0