org.apache.solr.client.solrj
Class SolrServer
java.lang.Object
org.apache.solr.client.solrj.SolrServer
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CommonsHttpSolrServer, EmbeddedSolrServer, LBHttpSolrServer
public abstract class SolrServer
- extends Object
- implements Serializable
- Since:
- solr 1.3
- Version:
- $Id: SolrServer.java 824332 2009-10-12 13:40:03Z ehatcher $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolrServer
public SolrServer()
add
public UpdateResponse add(Collection<SolrInputDocument> docs)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
addBeans
public UpdateResponse addBeans(Collection<?> beans)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
add
public UpdateResponse add(SolrInputDocument doc)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
addBean
public UpdateResponse addBean(Object obj)
throws IOException,
SolrServerException
- Throws:
IOException
SolrServerException
commit
public UpdateResponse commit()
throws SolrServerException,
IOException
- waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP access
- Throws:
IOException
SolrServerException
optimize
public UpdateResponse optimize()
throws SolrServerException,
IOException
- waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP access
- Throws:
IOException
SolrServerException
commit
public UpdateResponse commit(boolean waitFlush,
boolean waitSearcher)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
optimize
public UpdateResponse optimize(boolean waitFlush,
boolean waitSearcher)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
optimize
public UpdateResponse optimize(boolean waitFlush,
boolean waitSearcher,
int maxSegments)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
rollback
public UpdateResponse rollback()
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
deleteById
public UpdateResponse deleteById(String id)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
deleteById
public UpdateResponse deleteById(List<String> ids)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
deleteByQuery
public UpdateResponse deleteByQuery(String query)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
ping
public SolrPingResponse ping()
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
query
public QueryResponse query(SolrParams params)
throws SolrServerException
- Throws:
SolrServerException
query
public QueryResponse query(SolrParams params,
SolrRequest.METHOD method)
throws SolrServerException
- Throws:
SolrServerException
request
public abstract NamedList<Object> request(SolrRequest request)
throws SolrServerException,
IOException
- SolrServer implementations need to implement how a request is actually processed
- Throws:
SolrServerException
IOException
getBinder
public DocumentObjectBinder getBinder()
Copyright © 2009 Apache Software Foundation. All Rights Reserved.