Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4004

Improve Javadoc for SolrPing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1, 6.0
    • clients - java
    • None

    Description

      There's no text in the javadoc of SolrPing. Since it depends on a particular admin request handler, it would be helpful if it explained the situation. Patch to be attached.

      Since this is such a small patch, I'm dropping it here:

      diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/SolrPing.java b/solr/solrj/src/java/org/apache/
      index a1c6be2..4adbc41 100644
      --- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/SolrPing.java
      +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/SolrPing.java
      @@ -28,7 +28,9 @@ import org.apache.solr.common.params.ModifiableSolrParams;
       import org.apache.solr.common.util.ContentStream;
       
       /**
      - * 
      + * Verify that there is a working Solr core at the URL of a {@link SolrServer}.
      + * To use this class, the solrconfig.xml for the relevant core must include the
      + * request handler for <code>/admin/ping</code>.
        *
        * @since solr 1.3
        */
      

      Attachments

        Activity

          People

            romseygeek Alan Woodward
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: