Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by NoblePaul: http://wiki.apache.org/solr/Solrj The comment on the change is: new methods added to SolrServer ------------------------------------------------------------------------------ For simplicity, the most common commands are modeled in the [http://svn.apache.org/repos/asf/lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrServer.java SolrServer]: + The methods are of the class are + {{{ - public interface SolrServer - { - UpdateResponse add( SolrInputDocument doc ); - UpdateResponse add( Collection<SolrInputDocument> docs ); - UpdateResponse add( SolrInputDocument doc, boolean overwrite ); + + public UpdateResponse add( SolrInputDocument doc )throws IOException, SolrServerException ; + + public UpdateResponse add( Collection<SolrInputDocument> docs )throws IOException, SolrServerException ; + + public UpdateResponse add( SolrInputDocument doc, boolean overwrite )throws IOException, SolrServerException ; + - UpdateResponse add( Collection<SolrInputDocument> docs, boolean overwrite ); + public UpdateResponse add( Collection<SolrInputDocument> docs, boolean overwrite )throws IOException, SolrServerException ; - UpdateResponse deleteById( String id ); - UpdateResponse deleteByQuery( String query ); - UpdateResponse commit( boolean waitFlush, boolean waitSearcher ); - UpdateResponse optimize( boolean waitFlush, boolean waitSearcher ); - UpdateResponse commit( ); - UpdateResponse optimize( ); - QueryResponse query( SolrParams params ); - SolrPingResponse ping(); - } + + public UpdateResponse deleteById( String id )throws IOException, SolrServerException ; + + public UpdateResponse deleteByQuery( String query )throws IOException, SolrServerException ; + + public UpdateResponse commit( boolean waitFlush, boolean waitSearcher )throws IOException, SolrServerException ; + + public UpdateResponse optimize( boolean waitFlush, boolean waitSearcher )throws IOException, SolrServerException ; + + public UpdateResponse commit( )throws IOException, SolrServerException ; + + public UpdateResponse optimize( )throws IOException, SolrServerException ; + + public QueryResponse query( SolrParams params )throws IOException, SolrServerException ; + + public SolrPingResponse ping()throws IOException, SolrServerException ; + + public UpdateResponse addBeans(Collection<Object> beans, boolean overwrite )throws SolrServerException, IOException; + + public UpdateResponse addBeans(Collection<Object> beans )throws SolrServerException, IOException; + + public UpdateResponse addBean(Object obj, boolean overwrite) throws IOException, SolrServerException ; + + public UpdateResponse addBean(Object obj) throws IOException, SolrServerException ; + }}} For custom handlers or if you need access to functions not exposed in the !SolrServer, you need to work directly with the [http://svn.apache.org/repos/asf/lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrRequest.java SolrRequest] and call:
