module Solr4R::Client::AdminMixin
Public Instance Methods
analyze_document(doc, params = {}, options = {}, path = DEFAULT_ANALYZE_DOCUMENT_PATH, &block)
click to toggle source
# File lib/solr4r/client/admin_mixin.rb, line 62 def analyze_document(doc, params = {}, options = {}, path = DEFAULT_ANALYZE_DOCUMENT_PATH, &block) doc = builder.doc(doc) unless doc.is_a?(String) update(doc, amend_options_hash( options, :params, wt: :json), path, &block).result % 'analysis' end
analyze_field(analysis, params = {}, options = {}, path = DEFAULT_ANALYZE_FIELD_PATH, &block)
click to toggle source
# File lib/solr4r/client/admin_mixin.rb, line 71 def analyze_field(analysis, params = {}, options = {}, path = DEFAULT_ANALYZE_FIELD_PATH, &block) json(path, params.merge(analysis: analysis), options, &block) % 'analysis' end
cores( params = {}, options = {}, path = DEFAULT_CORES_PATH, &block)
click to toggle source
# File lib/solr4r/client/admin_mixin.rb, line 50 def cores( params = {}, options = {}, path = DEFAULT_CORES_PATH, &block) json(path, params, options, &block) % 'status' end
fields( params = {}, options = {}, path = DEFAULT_FIELDS_PATH, &block)
click to toggle source
# File lib/solr4r/client/admin_mixin.rb, line 56 def fields( params = {}, options = {}, path = DEFAULT_FIELDS_PATH, &block) json(path, params, options, &block) % 'fields' end
ping( params = {}, options = {}, path = DEFAULT_PING_PATH, &block)
click to toggle source
# File lib/solr4r/client/admin_mixin.rb, line 44 def ping( params = {}, options = {}, path = DEFAULT_PING_PATH, &block) json(path, params, options, &block) % 'status' end
solr_version(type = :spec, params = {}, options = {}, path = DEFAULT_SYSTEM_PATH, &block)
click to toggle source
# File lib/solr4r/client/admin_mixin.rb, line 38 def solr_version(type = :spec, params = {}, options = {}, path = DEFAULT_SYSTEM_PATH, &block) json(path, params, options, &block) % "lucene/solr-#{type}-version" end