Skip to content

Instantly share code, notes, and snippets.

@adi89
Created May 4, 2018 14:54
Show Gist options
  • Select an option

  • Save adi89/16f97f9fa8ec347d8b6875c6bb9a85c4 to your computer and use it in GitHub Desktop.

Select an option

Save adi89/16f97f9fa8ec347d8b6875c6bb9a85c4 to your computer and use it in GitHub Desktop.
HTTParty.get("https://<endpt>/solr/#/providers/replication?command=details").parsed_response
=> "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html>\n\n<!--\nLicensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n\n<head>\n \n <title>Solr Admin</title>\n \n <link rel=\"icon\" type=\"image/ico\" href=\"img/favicon.ico?_=4.10.4\">\n\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/common.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/analysis.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/cloud.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/cores.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/dashboard.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/dataimport.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/files.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/index.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/java-properties.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/logging.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/menu.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/plugins.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/documents.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/query.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/replication.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/schema-browser.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles/threads.css?_=4.10.4\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/chosen.css?_=4.10.4\">\n\n <meta http-equiv=\"x-ua-compatible\" content=\"IE=9\">\n \n <script type=\"text/javascript\">\n \n var app_config = {};\n \n app_config.solr_path = '\\/solr';\n app_config.core_admin_path = '\\/admin\\/cores';\n \n </script>\n \n</head>\n<body>\n \n <div id=\"wrapper\">\n \n <div id=\"header\">\n \n <a href=\"./\" id=\"solr\"><span>Apache SOLR</span></a>\n\n <p id=\"environment\">&nbsp;</p>\n\n </div>\n\n <div id=\"main\" class=\"clearfix\">\n \n <div id=\"init-failures\">\n\n <h2>SolrCore Initialization Failures</h2>\n <ul></ul>\n <p>Please check your logs for more information</p>\n \n </div>\n\n <div id=\"content-wrapper\">\n <div id=\"content\">\n \n &nbsp;\n \n </div>\n </div>\n \n <div id=\"menu-wrapper\">\n <div>\n \n <ul id=\"menu\">\n\n <li id=\"index\" class=\"global\"><p><a href=\"#/\">Dashboard</a></p></li>\n\n <li id=\"logging\" class=\"global\"><p><a href=\"#/~logging\">Logging</a></p>\n <ul>\n <li class=\"level\"><a href=\"#/~logging/level\">Level</a></li>\n </ul>\n </li>\n\n <li id=\"cloud\" class=\"global optional\"><p><a href=\"#/~cloud\">Cloud</a></p>\n <ul>\n <li class=\"tree\"><a href=\"#/~cloud?view=tree\">Tree</a></li>\n <li class=\"graph\"><a href=\"#/~cloud\">Graph</a></li>\n <li class=\"rgraph\"><a href=\"#/~cloud?view=rgraph\">Graph (Radial)</a></li>\n <li class=\"dump\"><a href=\"#/~cloud\">Dump</a></li>\n </ul>\n </li>\n\n <li id=\"cores\" class=\"global\"><p><a href=\"#/~cores\">Core Admin</a></p></li>\n\n <li id=\"java-properties\" class=\"global\"><p><a href=\"#/~java-properties\">Java Properties</a></li>\n\n <li id=\"threads\" class=\"global\"><p><a href=\"#/~threads\">Thread Dump</a></p></li>\n \n </ul>\n\n <div id=\"core-selector\">\n <div id=\"has-cores\">\n <select data-placeholder=\"Core Selector\"></select>\n </div>\n <p id=\"has-no-cores\"><a href=\"#/~cores\">\n No cores available\n <span>Go and create one</span>\n </a></p>\n </div>\n <div id=\"core-menu\">\n <ul></ul>\n </div>\n \n </div>\n </div>\n \n <div id=\"meta\">\n \n <ul>\n \n <li class=\"documentation\"><a href=\"http://lucene.apache.org/solr/\"><span>Documentation</span></a></li>\n <li class=\"issues\"><a href=\"http://issues.apache.org/jira/browse/SOLR\"><span>Issue Tracker</span></a></li>\n <li class=\"irc\"><a href=\"http://webchat.freenode.net/?channels=#solr\"><span>IRC Channel</span></a></li>\n <li class=\"mailinglist\"><a href=\"http://wiki.apache.org/solr/UsingMailingLists\"><span>Community forum</span></a></li>\n <li class=\"wiki-query-syntax\"><a href=\"http://wiki.apache.org/solr/SolrQuerySyntax\"><span>Solr Query Syntax</span></a></li>\n \n </ul>\n \n </div>\n \n </div>\n \n </div>\n\n <div id=\"connection_status\">\n\n <span>Connection lost &hellip;</span>\n\n </div>\n \n <script type=\"text/javascript\"> var require = { urlArgs: '_=4.10.4' }; </script>\n <script src=\"js/require.js?_=4.10.4\" data-main=\"js/main\"></script>\n\n</body>\n</html>\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment