Search API
REST API for searching in OMN (Online Media Net): full-text and combined queries, type-ahead, suggestions, stored searches and index management.
Endpoints
Documents
PATCH /api/v1/search/documents
Update documents
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
DocumentUpdateRequestDto |
Document update request containing the documents to be updated DocumentUpdateRequestDto |
X |
POST /api/v1/search/documents/wait
Wait for documents
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
DocumentWaitRequestDto |
Document wait request containing the documents to wait for and timeout configuration DocumentWaitRequestDto |
X |
History
POST /api/v1/search/history
Add history entry
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
HistoryAddDto |
History add request containing the entry to be added to search history HistoryAddDto |
X |
DELETE /api/v1/search/history
Delete history entries
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
HistoryDeleteDto |
History delete request containing parameters for deleting history entries HistoryDeleteDto |
X |
POST /api/v1/search/history/query
Query history entries
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
HistoryQueryDto |
History query request containing parameters for retrieving history entries HistoryQueryDto |
X |
Index
POST /api/v1/search/index
Process index command
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
IndexCommandDto |
Index command request containing the command to be processed IndexCommandDto |
X |
GET /api/v1/search/index/state
List index states
Responses
| Code | Message | Datatype |
|---|---|---|
200 |
Successful operation |
IndexStateItemDto[[AnyType]] |
GET /api/v1/search/index
List indices
Responses
| Code | Message | Datatype |
|---|---|---|
200 |
Successful operation |
IndexItemDto[[AnyType]] |
Search
GET /api/v1/search/search/fields
Fetch field configurations for index
Responses
| Code | Message | Datatype |
|---|---|---|
200 |
Successful operation |
FieldCfgDto[[AnyType]] |
POST /api/v1/search/search/fields
Fetch field configurations with operators
Description
Returns field configurations with operators based on the provided field information request
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
FieldInfoRequestDto |
Field information request containing parameters for retrieving field configurations with operators FieldInfoRequestDto |
X |
Responses
| Code | Message | Datatype |
|---|---|---|
200 |
Successful operation |
FieldCfgDto[[AnyType]] |
POST /api/v1/search/search
Perform search
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
SearchDto |
Search request containing the search criteria SearchDto |
X |
StoredSearch
GET /api/v1/search/storedsearch
Load stored searches
POST /api/v1/search/storedsearch
Store a search
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
StoredSearchInsertDto |
Stored search insert request containing the search to be stored StoredSearchInsertDto |
X |
PATCH /api/v1/search/storedsearch/{id}
Update stored search
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
StoredSearchDto |
Stored search update request containing the updated search data StoredSearchDto |
X |
Suggest
POST /api/v1/search/suggest
Get suggestions
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
SuggestDto |
Suggest request containing the criteria for retrieving suggestions SuggestDto |
X |
TypeAhead
POST /api/v1/search/type-ahead
Get type-ahead suggestions
Parameters
Body Parameter
| Name | Description | Required | Default | Pattern |
|---|---|---|---|---|
TypeAheadDto |
Type ahead request containing the text and parameters for retrieving type-ahead suggestions TypeAheadDto |
X |
Models
CombinedQueryDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
queryType |
Enum: FULLTEXT, FIELD, COMBINED, TYPEAHEAD, |
||||
customProperty |
String |
||||
queries |
List of [CombinedQueryDto_allOf_queries] |
||||
operator |
Enum: AND, OR, |
CombinedQueryDtoAllOfQueries
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
queryType |
Enum: FULLTEXT, FIELD, COMBINED, TYPEAHEAD, |
||||
customProperty |
String |
||||
queries |
List of [CombinedQueryDto_allOf_queries] |
||||
operator |
Enum: AND, OR, |
||||
name |
String |
||||
value |
String |
||||
comparator |
Enum: EQ, NOT_EQ, LIKE, NOT_LIKE, GT, GE, LT, LE, TERM_STARTS_WITH, TERM_NOT_STARTS_WITH, TERM_ENDS_WITH, TERM_NOT_ENDS_WITH, TERM_WILDCARD, TERM_NOT_WILDCARD, IN, NOT_IN, IS_EMPTY, IS_NOT_EMPTY, |
||||
keyword |
Boolean |
||||
language |
String |
||||
text |
String |
||||
count |
Integer |
int32 |
|||
slop |
Integer |
int32 |
ConfigSearchDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
searchType |
Enum: CONFIG, INDEX, |
||||
configId |
Long |
int64 |
|||
configIdentifier |
String |
||||
labelLocalization |
String |
DocumentUpdateItmDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
id |
Long |
int64 |
|||
guid |
String |
||||
event |
Enum: CREATE, UPDATE, DELETE, |
DocumentUpdateRequestDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
||||
documents |
List of DocumentUpdateItmDto |
DocumentWaitRequestDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
||||
modifiedAt |
Long |
int64 |
|||
maxWait |
Long |
int64 |
|||
documents |
List of [long] |
int64 |
FacetDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
facetType |
Enum: NAMED, RANGED, |
||||
attribute |
String |
||||
label |
String |
||||
type |
String |
||||
value |
X |
oas_any_type_not_mapped |
|||
count |
Integer |
int32 |
|||
from |
String |
||||
to |
String |
||||
children |
List of FacetDto |
FacetGroupDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
name |
String |
||||
facets |
List of FacetDto |
FieldCfgDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
fieldName |
String |
||||
label |
String |
||||
fieldType |
String |
||||
aggregatable |
Boolean |
||||
sortable |
Boolean |
||||
multilingual |
Boolean |
||||
attrIdentifier |
String |
||||
nestedFields |
List of FieldCfgDto |
||||
allowedOperators |
List of [string] |
FieldInfoRequestDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
||||
showAllowedOperators |
Boolean |
||||
fields |
List of [string] |
FieldQueryDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
queryType |
Enum: FULLTEXT, FIELD, COMBINED, TYPEAHEAD, |
||||
customProperty |
String |
||||
name |
String |
||||
value |
X |
oas_any_type_not_mapped |
|||
comparator |
Enum: EQ, NOT_EQ, LIKE, NOT_LIKE, GT, GE, LT, LE, TERM_STARTS_WITH, TERM_NOT_STARTS_WITH, TERM_ENDS_WITH, TERM_NOT_ENDS_WITH, TERM_WILDCARD, TERM_NOT_WILDCARD, IN, NOT_IN, IS_EMPTY, IS_NOT_EMPTY, |
||||
keyword |
Boolean |
||||
language |
String |
FulltextQueryDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
queryType |
Enum: FULLTEXT, FIELD, COMBINED, TYPEAHEAD, |
||||
customProperty |
String |
||||
value |
String |
HighlightDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
name |
String |
||||
value |
List of [string] |
HistoryAddDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
text |
String |
||||
user |
String |
||||
context |
String |
HistoryAddResultAllOfAddedDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
id |
Long |
int64 |
|||
text |
String |
||||
user |
String |
||||
context |
String |
HistoryAddResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
added |
HistoryDeleteResultAllOfDeletedDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
user |
String |
||||
context |
String |
||||
count |
Long |
int64 |
HistoryDeleteResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
deleted |
HistoryQueryDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
text |
String |
||||
user |
String |
||||
context |
String |
||||
count |
Integer |
int32 |
HistoryQueryResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
histories |
List of [string] |
IndexCommandDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
||||
command |
Enum: REBUILD, STATE, ENABLE_INCREMENTAL_UPDATES, DISABLE_INCREMENTAL_UPDATES, |
IndexItemDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
String |
||||
outdated |
Boolean |
||||
createdAt |
String |
IndexResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
index |
String |
||||
event |
Enum: PREPARE, CREATE_INDEX, ADD_DOCUMENTS, SET_ALIAS, PROCESS_DELTA, DELETE_OLD_INDEX, END, ERROR, BUSY, |
||||
documentsProcessed |
Long |
int64 |
|||
totalDocuments |
Long |
int64 |
|||
command |
String |
IndexSearchDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
searchType |
Enum: CONFIG, INDEX, |
||||
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
IndexStateItemDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
String |
||||
mappingState |
|||||
indexingState |
IndexStateItemIndexingStateDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
state |
Enum: PREPARE, CREATE_INDEX, ADD_DOCUMENTS, SET_ALIAS, PROCESS_DELTA, DELETE_OLD_INDEX, END, ERROR, BUSY, |
||||
documentsProcessed |
Long |
int64 |
|||
totalDocuments |
Long |
int64 |
IndexStateItemMappingStateDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
outdated |
Boolean |
||||
createdAt |
String |
QueryDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
queryType |
Enum: FULLTEXT, FIELD, COMBINED, TYPEAHEAD, |
||||
customProperty |
String |
ResultAttributeDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
name |
String |
||||
label |
String |
||||
type |
String |
||||
value |
X |
oas_any_type_not_mapped |
ResultItemDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
id |
Long |
int64 |
|||
attributes |
List of ResultAttributeDto |
||||
highlights |
List of HighlightDto |
SearchDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
context |
|||||
query |
|||||
maxResults |
Integer |
int32 |
|||
pageIndex |
Integer |
int32 |
|||
pageSize |
Integer |
int32 |
|||
sortOptions |
List of SortOptionDto |
||||
aggregationEnabled |
Boolean |
||||
aggregateEmptyValueEnabled |
Boolean |
||||
aggregationMaxResults |
Integer |
int32 |
|||
resultAttributes |
List of [string] |
||||
storedFields |
List of [string] |
||||
aggregationAttributes |
List of [string] |
||||
join |
|||||
language |
String |
||||
customProperty |
String |
SearchDtoContext
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
searchType |
Enum: CONFIG, INDEX, |
||||
configId |
Long |
int64 |
|||
configIdentifier |
String |
||||
labelLocalization |
String |
||||
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
SearchResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
resultCount |
Integer |
int32 |
|||
totalHitCount |
Long |
int64 |
|||
exactHitCount |
Boolean |
||||
items |
List of ResultItemDto |
||||
facets |
List of FacetGroupDto |
||||
suggest |
SortOptionDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
attribute |
String |
||||
direction |
Enum: ASC, DESC, |
||||
language |
String |
StoredSearchEntryDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
id |
Long |
int64 |
|||
index |
String |
||||
name |
String |
||||
pluginConfigurationId |
Long |
int64 |
|||
pluginIdentifier |
String |
StoredSearchListResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
storedSearchEntries |
List of StoredSearchEntryDto |
StoredSearchOperationResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
id |
Long |
int64 |
|||
name |
String |
SuggestDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
||||
text |
String |
||||
count |
Integer |
int32 |
SuggestResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
suggestions |
List of [string] |
TypeAheadDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
index |
Enum: ASSET, PRODUCT, CHANNEL, GLOBAL, HISTORY, FS_TABLE_WFL, CHANNEL_2_PRODUCT, |
||||
name |
String |
||||
text |
String |
||||
count |
Integer |
int32 |
|||
slop |
Integer |
int32 |
TypeAheadQueryDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
queryType |
Enum: FULLTEXT, FIELD, COMBINED, TYPEAHEAD, |
||||
customProperty |
String |
||||
name |
String |
||||
text |
String |
||||
count |
Integer |
int32 |
|||
slop |
Integer |
int32 |
TypeAheadResultDto
| Field Name | Required | Nullable | Type | Description | Format |
|---|---|---|---|---|---|
apiVersion |
String |
||||
processingTimeMillis |
Long |
int64 |
|||
suggestions |
List of [string] |
||||
advSuggestions |
List of TypeAheadSuggestionDto |
||||
corrections |
List of [string] |