Class AtlassianDocument
java.lang.Object
com.atlassian.confluence.search.v2.AtlassianDocument
- Since:
- 7.16
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddField
(FieldDescriptor field) addFields
(Collection<FieldDescriptor> fields) @Nullable String
getId()
Returns the id that uniquely identifies this document on the index, or null if this document is to be indexed with an auto-generated id.Sets an (optional) id that uniquely identifies this document on the index.
-
Constructor Details
-
AtlassianDocument
public AtlassianDocument() -
AtlassianDocument
-
-
Method Details
-
addField
-
addFields
-
getFields
-
getValue
-
getId
Returns the id that uniquely identifies this document on the index, or null if this document is to be indexed with an auto-generated id.Only available in OpenSearch. This property is ignored on Lucene.
- Returns:
- the id that uniquely identifies this document on the index, or null if this document is to be indexed with an auto-generated id.
- Since:
- 8.8
-
setId
Sets an (optional) id that uniquely identifies this document on the index. If null, an internal id will be auto-generated.Only available in OpenSearch. This property is ignored on Lucene.
- Parameters:
id
- String | the id that uniquely identifies this document on the index- Since:
- 8.8
-