A message for our valued customers and partners: This site is retiring, including accounts and API keys, as we migrate to the new developer portal. If you use existing API keys you will be contacted with further migration instructions. Accounts and API keys are not shared between this developer portal and the new developer portal. We recommend you review the new portal's Get Started guide for details on registering a new developer account and requesting new API keys.

getAllByAdHoc

get

getAllByAdHoc

Retrieve one or many contents' metadata

Resource URL

https://test-apis.us-east-1.lmig.com/v1/nebula /{stack}/{tenant}/content-metadata/ad-hoc

Query Parameters

Name Description
search

Use this to perform generic searches for string, integer, boolean, and date fields. Date fields must be in UTC date format YYYY-MM-DDThh:mm:ssZ. Search must contain at least one set of valid search objects. Multiple sets of objects can be provided to support 'OR' conditions. Search objects within a set will be joined with 'AND' conditions. Search objects require the following core fields - "field", "type", "operator". Valid operators include - "IN", "NOT IN", "BETWEEN", "NOT BETWEEN", "IS", "IS NOT", "IS NULL", "IS NOT NULL", "=", ">", "<", ">=", "<=", "!=", "<>", "<=>".

Each set of search objects should contain a primary key for the query to be efficient. Corresponding additional required search object fields are operator dependent and can be determined from the following examples

Example 1 - Single set of search objects. Every object within a set will be joined with 'AND' clause.

[[{ "field":"primaryKey", "type":"string", "operator":"IN", "values":[ "PolicyDocTest", "PolicyDocTest1", "PolicyDocTest2" ]}, {"field":"documentDate", "type":"date", "operator":"=", "comparisonValue":"2019-04-22T18:25:43.511Z" }, { "field":"createDate", "type":"date", "from":"2020-03-20T08:57:43Z", "operator":"BETWEEN", "to":"2020-04-25T13:15:30Z" }, { "field":"documentType", "type":"string", "operator":"IS NULL" }, { "field":"archiveIndicator", "type":"boolean", "operator":"IS", "trueorfalse":"true" }]]

Example 2 - Multi set of search objects. Every set of objects will be joined with 'OR' clause.

[[{"field":"primaryKey", "type":"string", "operator":"IN", "values":["PolicyDocTest", "PolicyDocTest1", "PolicyDocTest2"]}, {"field":"documentDate", "type":"date", "operator":"=", "comparisonValue":"2019-04-22T18:25:43.511Z"}, {"field":"createDate", "type":"date", "from":"2020-03-20T08:57:43Z", "operator":"BETWEEN", "to":"2020-04-25T13:15:30Z" }, {"field":"documentType", "type":"string", "operator":"IS NULL" }, {"field":"archiveIndicator", "type":"boolean", "operator":"IS", "trueorfalse":"true"}], [{"field":"secondaryKey", "type":"string", "operator":"NOT IN", "values":["PolicyDocTest", "PolicyDocTest1", "PolicyDocTest2"]}, {"field":"createDate", "type":"date", "operator":"!=", "comparisonValue":"2019-04-22T18:25:43.511Z" }, {"field":"documentDate", "type":"date", "from":"2020-03-20T08:57:43Z", "operator":"NOT BETWEEN", "to":"2020-04-25T13:15:30Z" }, {"field":"documentType", "type":"string", "operator":"IS NOT NULL"}, {"field":"archiveIndicator", "type":"boolean", "operator":"IS NOT", "trueorfalse":"true" }]]

Example 3 - Search for metadata array (currently Nebula only supports adhoc searches for string or date metadata arrays, not integer metadata arrays) Metadata array field names should be passed in the request enclosed in brackets (in this example field is [searchArray]). Metadata array searches support the IN or NOT IN operator. If searching for multiple metadata array values, they should be broken up into individual search objects for query efficiency.

[[{"operator":"IN", "values":[ "value1"], "type":"string", "field":"[searchArray]"}, {"operator":"IN", "values":[ "value2"], "type":"string", "field":"[searchArray]"}, {"field":"primaryKey", "type":"string", "operator":"IN", "values":[ "AdhocSearchTest1", "PolicyDocTest1", "PolicyDocTest2" ]}]]

Example 4 - Search that includes NULL values use the flag includeNull = "true" this is only supported for != and IN operator

[[{"includeNull":"true","operator":"IN","values":["989898989811"],"type":"string","field":"primaryKey"},{"includeNull":"true","field":"documentDate","type":"date","operator":"!=","comparisonValue":"2018-04-22T18:25:43Z"},{"includeNull":"true","operator":"IN","values":[4],"type":"int","field":"outputDestinationCode"}]]

searchByRange (Deprecated)

Use this to perform range searches for integer and date fields. Date fields must be in UTC date format YYYY-MM-DDThh:mm:ssZ. Only one searchByRange parameter is required but accepts both types at the same time. Example - [{"field":"appliedamount","from":10,"to":2000,"type":"integer"},{"field":"documentDate","from":"2019-04-21T13:15:30Z","to":"2019-04-25T13:15:30Z","type":"date"}]

searchByExact (Deprecated)

Use this to search for an exact value for metadata fields that are not keys. Only one searchByExact parameter is required but accepts both types at the same time. The value can be a single item or an array of values. Types can be string or int. Example 1 - [{"field":"claimnumber","value":"987654321","type":"string"}] Example 2 - [{"field":"documentType","value":["Branded Title Check","Manifest"],"type":"string"}]

includeNonVisible

Indicates whether documents that are marked as non-visible such as on hold or suppressed are included in the search response. This will not include the documents marked for deletion. By default, documents that have a value in the visibilityIndicator field in the Nebula system will not be returned.

Header Parameters

Name Description
Authorization
(required)

Apigee OAuth2 Bearer Token

UserToken
(required)

JWT used for document access control

RequestingApplication

API Key of the registered client application or application name provided by the Nebula team.

RequestTrackingId

Unique Id used to track the request end-to-end. Required for troubleshooting.

Request Body

Definitions


Name Type Description

Responses

Code Examples

Resource Summary

Security

Content Type

application/octet-stream

Category

Metadata

Schema:

HTTP Code Description

400

Unable to search for documents due to invalid or insufficient data provided by the client

403

Client is not permitted to use this operation

500

Internal server error

Working...