Search

POST insightmaker/ds/search/datasets/<dataset>

Datasets can be a comma separate list of sources, or * for all

Body:

Search query in Elasticsearch Query DSL (matching the installed version of Elasticsearch)

Parameters:

ParameterValueExample

include

Comma separated list of field ids to include, or * for all.

name,data.myModel.myAttribute

size

Integer, the number of documents to return.

10

Response:

A list of documents matching the search query. By default, document id and source id are always returned, others must be specified with the include parameter.

{
    "scrollId": "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAACHtUWOW42OG1ORzhSUE9wczNJY29YUWFNQQ==",    
    "total": 355,
    "items": [
        {
            "id": "FIoQuHUBC7u0ycD76whe",
            "isSensitive": false,
            "type": "File",
            "sourceId": "documents",
            "name": "hello+world.txt",
            "metadata": {},
            "entities": {},
            "actions": [],
            "collections": [],
            "suggestions": []
        },
        {
            "id": "74sluHUBC7u0ycD7SRt2",
            "isSensitive": false,
            "type": "File",
            "sourceId": "documents",
            "name": "hello+world.txt",
            "metadata": {},
            "entities": {},
            "actions": [],
            "collections": [],
            "suggestions": []
        },
        {
            "id": "_Ifrt3UBC7u0ycD7wnQh",
            "isSensitive": false,
            "type": "File",
            "sourceId": "documents",
            "name": "rcpp_hello_world.R",
            "metadata": {},
            "entities": {},
            "actions": [],
            "collections": [],
            "suggestions": []
        }
    ]
}