Class OpenSearchIndexWriter
- java.lang.Object
-
- com.atlassian.confluence.plugins.opensearch.OpenSearchIndexWriter
-
- All Implemented Interfaces:
SearchIndexWriter
public class OpenSearchIndexWriter extends Object implements SearchIndexWriter
SearchIndexWriter for adding and deleting documents on OpenSearch- Since:
- 8.6
-
-
Constructor Summary
Constructors Constructor Description OpenSearchIndexWriter(org.opensearch.client.opensearch.OpenSearchClient client, String indexName, FieldMappings fieldMappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(AtlassianDocument document)voiddelete(SearchQuery searchQuery)voiddeleteAll()voidpostOptimize()voidpreOptimize()
-
-
-
Constructor Detail
-
OpenSearchIndexWriter
public OpenSearchIndexWriter(org.opensearch.client.opensearch.OpenSearchClient client, String indexName, FieldMappings fieldMappings)
-
-
Method Detail
-
add
public void add(AtlassianDocument document) throws IOException
- Specified by:
addin interfaceSearchIndexWriter- Throws:
IOException
-
delete
public void delete(SearchQuery searchQuery) throws IOException
- Specified by:
deletein interfaceSearchIndexWriter- Throws:
IOException
-
deleteAll
public void deleteAll() throws IOException- Specified by:
deleteAllin interfaceSearchIndexWriter- Throws:
IOException
-
preOptimize
public void preOptimize()
- Specified by:
preOptimizein interfaceSearchIndexWriter
-
postOptimize
public void postOptimize()
- Specified by:
postOptimizein interfaceSearchIndexWriter
-
-