public class UpdateRequest extends AbstractUpdateRequest
AbstractUpdateRequest.ACTION
SolrRequest.METHOD
commitWithin, params
Constructor and Description |
---|
UpdateRequest() |
UpdateRequest(String url) |
Modifier and Type | Method and Description |
---|---|
UpdateRequest |
add(Collection<SolrInputDocument> docs) |
UpdateRequest |
add(SolrInputDocument doc) |
void |
clear()
clear the pending documents and delete commands
|
UpdateRequest |
deleteById(List<String> ids) |
UpdateRequest |
deleteById(String id) |
UpdateRequest |
deleteByQuery(String q) |
Collection<ContentStream> |
getContentStreams() |
List<String> |
getDeleteById() |
List<String> |
getDeleteQuery() |
Iterator<SolrInputDocument> |
getDocIterator() |
List<SolrInputDocument> |
getDocuments() |
String |
getXML() |
void |
setDocIterator(Iterator<SolrInputDocument> docIterator) |
void |
writeXML(Writer writer) |
getAction, getCommitWithin, getParams, isWaitSearcher, process, rollback, setAction, setAction, setAction, setAction, setAction, setAction, setCommitWithin, setParam, setParams, setWaitSearcher
getMethod, getPath, getResponseParser, getStreamingResponseCallback, setMethod, setPath, setResponseParser, setStreamingResponseCallback
public UpdateRequest()
public UpdateRequest(String url)
public void clear()
public UpdateRequest add(SolrInputDocument doc)
public UpdateRequest add(Collection<SolrInputDocument> docs)
public UpdateRequest deleteById(String id)
public UpdateRequest deleteById(List<String> ids)
public UpdateRequest deleteByQuery(String q)
public void setDocIterator(Iterator<SolrInputDocument> docIterator)
public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams
in class SolrRequest
IOException
public String getXML() throws IOException
IOException
public void writeXML(Writer writer) throws IOException
IOException
public List<SolrInputDocument> getDocuments()
public Iterator<SolrInputDocument> getDocIterator()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.