public class IndexingOptionsGeneric extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
CustomFields
A key-value collection of custom fields.
|
String |
DocumentId
The id to assign to the new document.
|
String |
IndexId
The id for the index where the document should be added (case-insensitive).
|
List<String> |
Roles
The list of roles that are allowed to retrieve the document.
|
MatchV2Environment |
SearchAndMatchEnvironment
The target environment where the document will be uploaded
|
SearchAndMatchVersion |
SearchAndMatchVersion
The Search & Match Version to use for indexing.
|
List<String> |
UserDefinedTags
The user-defined tags the document should have
|
| Constructor and Description |
|---|
IndexingOptionsGeneric(MatchV2Environment env,
String documentId,
List<String> roles,
Map<String,String> customFields)
Create options to upload a document with Match V2
|
IndexingOptionsGeneric(String documentId,
String indexId,
List<String> userDefinedTags)
Create options to index a document with Match V1
|
public SearchAndMatchVersion SearchAndMatchVersion
public String DocumentId
public String IndexId
Only use when SearchAndMatchVersion = SearchAndMatchVersion.V1
public List<String> UserDefinedTags
Only use when SearchAndMatchVersion = SearchAndMatchVersion.V1
public MatchV2Environment SearchAndMatchEnvironment
Only use when SearchAndMatchVersion = SearchAndMatchVersion.V2
public List<String> Roles
["all"] will be used.
Only use when SearchAndMatchVersion = SearchAndMatchVersion.V2
public Map<String,String> CustomFields
Only use when SearchAndMatchVersion = SearchAndMatchVersion.V2
public IndexingOptionsGeneric(String documentId, String indexId, List<String> userDefinedTags)
documentId - The id to assign to the new document. This is restricted to alphanumeric with dashes and underscores. All values will be converted to lower-case.indexId - The id for the index where the document should be added (case-insensitive).userDefinedTags - (optional) The user-defined tags the document should havepublic IndexingOptionsGeneric(MatchV2Environment env, String documentId, List<String> roles, Map<String,String> customFields)
env - The target environment where the document will be uploadeddocumentId - The id to assign to the new document. This is restricted to alphanumeric with dashes and underscores.roles - (optional) The list of roles that are allowed to retrieve the document. If not set, ["all"] will be used.customFields - (optional) A key-value collection of custom fields.Copyright © 2025. All rights reserved.