pdf-search
Searches the text of a PDF in the file store with a regular expression, one row per match.
pdf-search url=VALUE regex=VALUE [ignore-case=VALUE] [range=VALUE] [context=VALUE] [password=VALUE]
- url=VALUE
- Required. File store url of the PDF, e.g. sonar://{file_guid}
- regex=VALUE
- Required. Java regular expression. The quoted option value consumes one level of backslash escaping, so double every backslash: \d{1,3}, \. — a single \d silently becomes the literal d. e.g. (?i)error|failure
- ignore-case=VALUE
- Optional. t to match case-insensitively
- range=VALUE
- Optional. Page selection, e.g. "1-5,7" (1-based). Every page when omitted.
- context=VALUE
- Optional. Chars of surrounding text on each side of a match (default: 80)
- password=VALUE
- Optional. Password of an encrypted PDF. Tries the empty password when omitted.
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| page | Integer | Page | e.g. 3 - 1-based page number of the match |
| match | String | Match | e.g. ERROR - the matched text itself |
| context | String | Context | e.g. …request failed with ERROR 500 at 10:23… - the match with surrounding text |
| match_index | Long | Match index | e.g. 1 - 1-based position across the whole document |