Document search
POST/search
Document search query request;
Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be "exacted" or "begins_with" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted).
If using Enteprise Composite Keys feature then multiple tag(s) can be searched for.
If Typesense is enabled, full text search is supported through the "text" parameter. Full text search will look for the text in the "content" and/or document "metadata".
DocumentIds parameter allows you to filter your results to a specific set of documents.
See requestBody examples below for commmon examples.
Request
Query Parameters
Site Identifier
Limit Results
10
Next page of results token
Previous page of results token
- application/json
Body
required
Array [
]
Array [
]
query
object
required
Document tag search criteria
Full text search
meta
object
Searches for a folder
Searches for a Path of document
Searches for strings that eq
Searches in an index
Possible values: [folder
]
Returns index records that begins with a particular substring
attribute
object
Searches for strings that eq
Searches for ANY strings that eq
Searches for strings that begin with
range
object
Start of range query
End of range query
Search Range Data Type
Possible values: [STRING
, NUMBER
]
STRING
Attribute key to search
attributes
object[]
List of Composite Key attributes to filter search results on
Searches for strings that eq
Searches for ANY strings that eq
Searches for strings that begin with
range
object
Start of range query
End of range query
Search Range Data Type
Possible values: [STRING
, NUMBER
]
STRING
Attribute key to search
tag
object
Searches for strings that begin with
Searches for strings that eq
Searches for ANY strings that eq
range
object
Start of range query
End of range query
Search Range Data Type
Possible values: [STRING
, NUMBER
]
STRING
Tag key to search
tags
object[]
List of Composite Key tags to filter search results on
Searches for strings that eq
Searches for strings that begin with
range
object
Start of range query
End of range query
Search Range Data Type
Possible values: [STRING
, NUMBER
]
STRING
Tag key to search
List of DocumentIds to filter search results on
responseFields
SearchResponseFields
Responses
- 200
200 OK
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
Next page of results token
Previous page of results token
documents
object[]
List of search result documents
Site Identifier
Path or Name of document
Document Content Width property
Document Content Height property
Path or Name of deep link
Inserted Timestamp
Last Modified Timestamp
Is Result a Document Folder
populated if search result are from an index
Document checksum, changes when document file changes
The type of checksum to use for file validation
Possible values: [SHA1
, SHA256
]
Document Identifier
Document Content-Type
User who added document
Document size
Document version
Parent Document Identifier
matchedAttribute
object
Tag key
Attribute with string value
Attribute with number value
Attribute with boolean value
matchedTag
object
Tag key
Tag value
Tag type
matchedTags
object[]
Tag key
Tag value
Tag type
tags
object
attributes
object
property name*
SearchResultDocumentAttribute
Attribute with string values
Attribute with number values
Attribute with boolean value
Attribute Value Type
Possible values: [BOOLEAN
, KEY_ONLY
, NUMBER
, STRING
, PUBLICATION
, CLASSIFICATION
, COMPOSITE_STRING
, RELATIONSHIPS
, WATERMARK
]
metadata
object[]
List of document Metadata
Metadata key
Metadata value
Metadata values
{
"next": "string",
"previous": "string",
"documents": [
{
"siteId": "string",
"path": "string",
"width": "string",
"height": "string",
"deepLinkPath": "string",
"insertedDate": "string",
"lastModifiedDate": "string",
"folder": true,
"indexKey": "string",
"checksum": "string",
"checksumType": "SHA1",
"documentId": "string",
"contentType": "string",
"userId": "string",
"contentLength": 0,
"versionId": "string",
"belongsToDocumentId": "string",
"matchedAttribute": {
"key": "string",
"stringValue": "string",
"numberValue": 0,
"booleanValue": true
},
"matchedTag": {
"key": "string",
"value": "string",
"type": "string"
},
"matchedTags": [
{
"key": "string",
"value": "string",
"type": "string"
}
],
"tags": {},
"attributes": {},
"metadata": [
{
"key": "string",
"value": "string",
"values": [
"string"
]
}
]
}
]
}