public class ElasticContentRequestBuilder extends Object
| Constructor and Description |
|---|
ElasticContentRequestBuilder() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCreateDocumentRequestContent(ElasticIndexingServiceConnector connector,
String id)
Get an ES create document content to insert in a bulk request
For instance:
{ "create" : { "_index" : "blog", "_type" : "post", "_id" : "blog_post_1" } }
{ "field1" : "value3" }
|
String |
getCreateIndexRequestContent(ElasticIndexingServiceConnector connector)
Get an ES create Index request content
|
String |
getDeleteDocumentRequestContent(ElasticIndexingServiceConnector connector,
String id)
Get an ES delete document content to insert in a bulk request
For instance:
{ "delete" : { "_index" : "blog", "_type" : "post", "_id" : "blog_post_1" } }
|
String |
getUpdateDocumentRequestContent(ElasticIndexingServiceConnector connector,
String id)
Get an ES update document content to insert in a bulk request
We use the create api to reindex the full document (and not partially)
For instance:
{ "create" : { "_index" : "blog", "_type" : "post", "_id" : "blog_post_1" } }
{ "field1" : "value3" }
|
public String getCreateIndexRequestContent(ElasticIndexingServiceConnector connector)
public String getDeleteDocumentRequestContent(ElasticIndexingServiceConnector connector, String id)
public String getCreateDocumentRequestContent(ElasticIndexingServiceConnector connector, String id)
public String getUpdateDocumentRequestContent(ElasticIndexingServiceConnector connector, String id)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.