Skip to main content

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

    siteId string

    Site Identifier

    limit string

    Limit Results

    Default value: 10
    next string

    Next page of results token

    previous string

    Previous page of results token

Body

required

    query

    object

    required

    Document tag search criteria

    text string

    Full text search

    meta

    object

    folder string

    Searches for a folder

    path string

    Searches for a Path of document

    eq string

    Searches for strings that eq

    indexType string

    Searches in an index

    Possible values: [folder]

    indexFilterBeginsWith string

    Returns index records that begins with a particular substring

    attribute

    object

    eq string

    Searches for strings that eq

    eqOr string[]

    Searches for ANY strings that eq

    beginsWith string

    Searches for strings that begin with

    range

    object

    start stringrequired

    Start of range query

    end stringrequired

    End of range query

    type SearchRangeDataType (string)

    Search Range Data Type

    Possible values: [STRING, NUMBER]

    Default value: STRING
    key stringrequired

    Attribute key to search

    attributes

    object[]

    List of Composite Key attributes to filter search results on

  • Array [

  • eq string

    Searches for strings that eq

    eqOr string[]

    Searches for ANY strings that eq

    beginsWith string

    Searches for strings that begin with

    range

    object

    start stringrequired

    Start of range query

    end stringrequired

    End of range query

    type SearchRangeDataType (string)

    Search Range Data Type

    Possible values: [STRING, NUMBER]

    Default value: STRING
    key stringrequired

    Attribute key to search

  • ]

  • tag

    object

    beginsWith string

    Searches for strings that begin with

    eq string

    Searches for strings that eq

    eqOr string[]

    Searches for ANY strings that eq

    range

    object

    start stringrequired

    Start of range query

    end stringrequired

    End of range query

    type SearchRangeDataType (string)

    Search Range Data Type

    Possible values: [STRING, NUMBER]

    Default value: STRING
    key stringrequired

    Tag key to search

    tags

    object[]

    List of Composite Key tags to filter search results on

  • Array [

  • eq string

    Searches for strings that eq

    beginsWith string

    Searches for strings that begin with

    range

    object

    start stringrequired

    Start of range query

    end stringrequired

    End of range query

    type SearchRangeDataType (string)

    Search Range Data Type

    Possible values: [STRING, NUMBER]

    Default value: STRING
    key stringrequired

    Tag key to search

  • ]

  • documentIds string[]

    List of DocumentIds to filter search results on

    responseFields

    SearchResponseFields

    attributes string[]
    tags string[]

Responses

200 OK

Response Headers

  • Access-Control-Allow-Origin

    string

  • Access-Control-Allow-Methods

    string

  • Access-Control-Allow-Headers

    string

Schema

    next string

    Next page of results token

    previous string

    Previous page of results token

    documents

    object[]

    List of search result documents

  • Array [

  • siteId string

    Site Identifier

    path string

    Path or Name of document

    width string

    Document Content Width property

    height string

    Document Content Height property

    deepLinkPath string

    Path or Name of deep link

    insertedDate string

    Inserted Timestamp

    lastModifiedDate string

    Last Modified Timestamp

    folder boolean

    Is Result a Document Folder

    indexKey string

    populated if search result are from an index

    checksum string

    Document checksum, changes when document file changes

    checksumType ChecksumType (string)

    The type of checksum to use for file validation

    Possible values: [SHA1, SHA256]

    documentId string

    Document Identifier

    contentType string

    Document Content-Type

    userId string

    User who added document

    contentLength integer

    Document size

    versionId string

    Document version

    belongsToDocumentId string

    Parent Document Identifier

    matchedAttribute

    object

    key string

    Tag key

    stringValue string

    Attribute with string value

    numberValue number

    Attribute with number value

    booleanValue boolean

    Attribute with boolean value

    matchedTag

    object

    key string

    Tag key

    value string

    Tag value

    type string

    Tag type

    matchedTags

    object[]

  • Array [

  • key string

    Tag key

    value string

    Tag value

    type string

    Tag type

  • ]

  • tags

    object

    property name* any

    attributes

    object

    property name*

    SearchResultDocumentAttribute

    stringValues string[]

    Attribute with string values

    numberValues number[]

    Attribute with number values

    booleanValue boolean

    Attribute with boolean value

    valueType AttributeValueType (string)

    Attribute Value Type

    Possible values: [BOOLEAN, KEY_ONLY, NUMBER, STRING, PUBLICATION, CLASSIFICATION, COMPOSITE_STRING, RELATIONSHIPS, WATERMARK]

    metadata

    object[]

    List of document Metadata

  • Array [

  • key string

    Metadata key

    value string

    Metadata value

    values string[]

    Metadata values

  • ]

  • ]

Loading...