Package org.apache.solr.client.solrj.request

Examples of org.apache.solr.client.solrj.request.SolrPing


   * Issues a ping request to check if the server is alive
   * @throws SolrServerException
   * @throws IOException
   */
  public SolrPingResponse ping() throws SolrServerException, IOException {
    return new SolrPing().process( this );
  }
View Full Code Here


   
    // should be ok
    server.ping();
   
    try {
      SolrPing ping = new SolrPing();
      ping.getParams().set( "qt", "unknown handler! ignore_exception" );
      ping.process( server );
      fail( "sent unknown query type!" );
    }
    catch( Exception ex ) {
      // expected
    }
View Full Code Here

  public UpdateResponse deleteByQuery(String query) throws SolrServerException, IOException {
    return new UpdateRequest().deleteByQuery( query ).process( this );
  }

  public SolrPingResponse ping() throws SolrServerException, IOException {
    return new SolrPing().process( this );
  }
View Full Code Here

   
    // should be ok
    server.ping();
   
    try {
      SolrPing ping = new SolrPing();
      ping.getParams().set( "qt", "unknown handler!" );
      ping.process( server );
      fail( "sent unknown query type!" );
    }
    catch( Exception ex ) {
      // expected
    }
View Full Code Here

   
    // should be ok
    server.ping();
   
    try {
      SolrPing ping = new SolrPing();
      ping.getParams().set( "qt", "unknown handler!" );
      ping.process( server );
      fail( "sent unknown query type!" );
    }
    catch( Exception ex ) {
      // expected
    }
View Full Code Here

  public UpdateResponse deleteByQuery(String query) throws SolrServerException, IOException {
    return new UpdateRequest().deleteByQuery( query ).process( this );
  }

  public SolrPingResponse ping() throws SolrServerException, IOException {
    return new SolrPing().process( this );
  }
View Full Code Here

   
    // should be ok
    server.ping();
   
    try {
      SolrPing ping = new SolrPing();
      ping.getParams().set( "qt", "unknown handler!" );
      ping.process( server );
      fail( "sent unknown query type!" );
    }
    catch( Exception ex ) {
      // expected
    }
View Full Code Here

TOP

Related Classes of org.apache.solr.client.solrj.request.SolrPing

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.