mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 03:55:46 +00:00
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496871 13f79535-47bb-0310-9956-ffa450edef68
21 lines
361 B
Ruby
21 lines
361 B
Ruby
require 'rexml/xpath'
|
|
|
|
module Solr
|
|
module Response
|
|
class Ping < Solr::Response::Xml
|
|
|
|
def initialize(xml)
|
|
super(xml)
|
|
@ok = REXML::XPath.first(@doc, './solr/ping') ? true : false
|
|
end
|
|
|
|
# returns true or false depending on whether the ping
|
|
# was successful or not
|
|
def ok?
|
|
@ok
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|