UploadRequest

public class UploadRequest extends GenericJson

This class defines the schema of request to upload to cloud search API.

       
  • sourceId - Specifies the data source Id.
  • requests - List of requests to be upload to cloud search API.

An example of a file containing requests is:

  {
    "sourceId" : "source id",
    "requests" : [
        {
            "name": "deleteItemName",
            "type": "items.delete"
        }
    ]
  }
 

Nested Class Summary

class UploadRequest.AbstractNameRequest Abstract class of the request which has its name as the json key. 
class UploadRequest.AbstractRequest Abstract class of the request sent to the indexing API. 
class UploadRequest.DatasourcesListRequest Request to list data sources in the indexing API. 
class UploadRequest.DeleteQueueItemsRequest Request to delete items from a given queue. 
class UploadRequest.DeleteRequest Request to delete an Item from the indexing API. 
class UploadRequest.DeleteSchemaRequest Request to delete the schema from the indexing API for the data source. 
class UploadRequest.GetRequest Request to get an Item from the indexing API. 
class UploadRequest.GetSchemaRequest Request to get the schema from the indexing API for the data source. 
class UploadRequest.IndexItemAndContentRequest Request to index an Item and its content to the indexing API. 
class UploadRequest.IndexItemRequest Request to index an Item to the indexing API. 
class UploadRequest.ListRequest Request to list all items or search items by its attributes specified by filter criteria. 
class UploadRequest.MediaContent MediaContent supports media content from either a url or a string. 
class UploadRequest.PollItemsRequest Request to poll items from the indexing API. 
class UploadRequest.PushItemRequest Request to push item to the indexing API. 
class UploadRequest.UnreserveRequest Request to unreserve polled Item instances in a specific queue. 
class UploadRequest.UpdateSchemaRequest Request to register schema for the data source in the indexing API. 

Field Summary

public List<? extends UploadRequest.AbstractRequest> requests
public String sourceId

Public Constructor Summary

Inherited Method Summary

Fields

public List<? extends UploadRequest.AbstractRequest> requests

public String sourceId

Public Constructors

public UploadRequest ()