A search services for DataHub.
Searches Elasticsearch and returns matching documents (returned document content structure are not defined by this module)
make install
make test
python server.py
Elasticsearch: version 5.x should be installed
Endpoint: /metastore/search
Method: GET
HEADER: Auth-Token (received from /auth/check)
Query Parameters:
q - match-all query string Will search the following properties:
titledatahub.ownerdatahub.owneriddatapackage.readmesize - number of results to return [max 100]
from - offset to start returning results from
all other parameters will be treated as filters for the query (requiring exact match of value)
Returns: All packages that match the filter:
{
"summary": {
"total": "total-number-of-matched-documents",
"totalBytes": "total-size-of-matched-datasets"
},
"results": [
"list of matched documents"
]
}
Endpoint: /metastore/search/events
Method: GET
HEADER: Auth-Token (received from /auth/check)
Query Parameters:
flow is supported)finished is supported)Query Parameters for pagination and sorting:
Returns: All packages that match the filter:
{
"results": [
{
"dataset": "finance-vix",
"event_action": "finished",
"event_entity": "flow",
"findability": "published",
"messsage": "",
"owner": "core",
"ownerid": "core",
"status": "OK",
"timestamp": "2017-01-01T00:00:00.000000",
"payload": {
"flow-id": "core/finance-vix"
}
}
],
"summary": {
"total": 1,
"totalBytes": 0
}
}
Content type
Image
Digest
Size
106.5 MB
Last updated
about 8 years ago
docker pull datopian/metastore