Skip to main content

Search Documents

POST 

/documents/search

Search Datasphere Documents

Request

Body

required

    tagsstring[]

    Document tags.

    Example: ["sports","football","game"]
    document_iduuid

    Unique ID of a Document.

    query_stringstringrequired

    Search term.

    Example: Most paid athlete
    distanceinteger

    Specifies how closely related the query is to the document. Low distance means high relevance and similarity. High distance means low relevance and similarity.

    Possible values: <= 78.3836717690617

    Example: 2
    countinteger

    Specifies number of returned Chunks.

    Example: 5
    languagestring

    Language of the Document.

    Default value: en
    Example: fr
    pos_to_expandstring[]

    Part of Speech considered for expansion or analysis.

    Default value: ["NOUN","VERB","ADJ","ADV"]
    Example: ["NOUN","VERB"]
    max_synonymsinteger

    Maximum number of synonyms to consider.

    Default value: 10
    Example: 7

Responses

The request has succeeded.

Schema

  • Array [

  • textstringrequired

    A search result.

    Example: Cristiano Ronaldo is the highest-paid football player in the world in 2024
    document_iduuidrequired

    Unique ID of a Document.

  • ]