public class UpdateRequest extends AbstractUpdateRequest
AbstractUpdateRequest.ACTION
SolrRequest.METHOD
Modifier and Type | Field and Description |
---|---|
static String |
COMMIT_WITHIN |
static String |
MIN_REPFACT |
static String |
OVERWRITE |
static String |
REPFACT |
static String |
VER |
commitWithin, params
Constructor and Description |
---|
UpdateRequest() |
UpdateRequest(String url) |
getAction, getCommitWithin, getParams, isWaitSearcher, process, rollback, setAction, setAction, setAction, setAction, setAction, setAction, setAction, setCommitWithin, setParam, setParams, setWaitSearcher
getMethod, getPath, getResponseParser, getStreamingResponseCallback, setMethod, setPath, setResponseParser, setStreamingResponseCallback
public static final String REPFACT
public static final String MIN_REPFACT
public static final String VER
public static final String OVERWRITE
public static final String COMMIT_WITHIN
public UpdateRequest()
public UpdateRequest(String url)
public void clear()
public UpdateRequest add(SolrInputDocument doc)
public UpdateRequest add(SolrInputDocument doc, Boolean overwrite)
public UpdateRequest add(SolrInputDocument doc, Integer commitWithin)
public UpdateRequest add(SolrInputDocument doc, Integer commitWithin, Boolean overwrite)
public UpdateRequest add(Collection<SolrInputDocument> docs)
public UpdateRequest deleteById(String id)
public UpdateRequest deleteById(List<String> ids)
public UpdateRequest deleteById(String id, Long version)
public UpdateRequest deleteByQuery(String q)
public Map<String,LBHttpSolrServer.Req> getRoutes(DocRouter router, DocCollection col, Map<String,List<String>> urlMap, ModifiableSolrParams params, String idField)
router
- to route updates withcol
- DocCollection for the updatesurlMap
- of the clusterparams
- params to useidField
- the id fieldpublic 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 Map<SolrInputDocument,Map<String,Object>> getDocumentsMap()
public Iterator<SolrInputDocument> getDocIterator()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.