Skip to main content
Version: v2023.18.0

GET Pages Search Result

This API allows you to retrieve the search results for the pages of a specific document.

API Description

Endpoint:

GET /documents/{documentId}/pages

Resource path:

VariableRequiredDescription
documentIdYesThe ID of a document

Query params:

VariableRequiredDescription
searchTextYesThe text to search for
accentSensitiveNoDetermines if the search is accent-sensitive
caseSensitiveNoDetermines if the search is case-sensitive
regexNoDetermines if the value of the searchText parameter is a regex

Response :

TypeDescription
PagesSearchResultThe search results for the pages in JSON format

Examples

Get Pages Search Result

The following call generates a request to get the search results for the document with ID b64_bm9yZS92SDMtMS0xMTh1735080237. The search is performed for the text "example" with case sensitivity enabled.

curl -X 'GET' \
'http://localhost:8761/documents/b64_bm9yZS92SDMtMS0xMTh1735080237/pages?searchText=example&caseSensitive=true' \
-H 'accept: application/json'