* Execute query and return list of results and total result count as tuple
Perform search, check permissions, and keep searching again if page isn't filled with permitted resources
Return a filtered list of resources that user can actually access
Take a JsObject and list all unique fields under targetObject field, except those in ignoredFields
Take a JsObject and parse into an XContentBuilder JSON object for indexing into Elasticsearch
Create a new index with preconfigured mappgin
Delete an index
Delete all documents in default index
Traverse metadata field mappings to get unique list for autocomplete
Return string-encoded JSON object describing field types
Index document using an arbitrary map of fields.
Reindex the given file.
Reindex the given dataset, if recursive is set to true it will also reindex all files.
Reindex the given collection, if recursive is set to true it will also reindex all datasets and files.
Return map of distinct value/count for tags *
Attempt to cast String into Double, returning None if not possible*
Create appropriate search object based on operator
Create appropriate search object based on operator
Convert search string into an Elasticsearch-ready JSON query object *
Convert list of search term JsValues into an Elasticsearch-ready JSON query object *
Search using a simple text string.
Search using a simple text string. The API endpoint supports several parameters like datasetid that are translated and appended to the query first.
- Restrict to particular resource_type
- Restrict to particular dataset ID (only returns files)
- Restrict to particular collection ID
- Restrict to particular space ID
- Restrict to particular folder ID
- Restrict to a specific metadata field (assumes query is the value)
- Restrict to a particular tag (exact match)
Prepare and execute Elasticsearch query, and return list of matching ResourceRefs
Elasticsearch plugin.