Class: SearchSolrTools::Harvesters::AutoSuggest

Inherits:
Base
  • Object
show all
Defined in:
lib/search_solr_tools/harvesters/auto_suggest.rb

Overview

Use the nsidc_oai core to populate the auto_suggest core

Direct Known Subclasses

NsidcAutoSuggest

Constant Summary

Constants inherited from Base

Base::DELETE_DOCUMENTS_RATIO, Base::JSON_CONTENT_TYPE, Base::XML_CONTENT_TYPE

Constants included from SSTLogger

SSTLogger::LOG_LEVELS

Instance Attribute Summary

Attributes inherited from Base

#environment

Instance Method Summary collapse

Methods inherited from Base

#create_new_solr_add_doc, #create_new_solr_add_doc_with_child, #delete_old_documents, #doc_valid?, #encode_data_provider_url, #get_results, #get_serialized_doc, #harvest_and_delete, #insert_solr_doc, #insert_solr_docs, #ping_solr, #ping_source, #remove_documents, #sanitize_data_centers_constraints, #solr_url, #valid_solr_spatial_coverage?

Methods included from SSTLogger

#logger, logger

Constructor Details

#initialize(env = 'development', die_on_failure: false) ⇒ AutoSuggest

Returns a new instance of AutoSuggest.



11
12
13
14
# File 'lib/search_solr_tools/harvesters/auto_suggest.rb', line 11

def initialize(env = 'development', die_on_failure: false)
  super
  @env_settings = SolrEnvironments[@environment] # super sets @environment.
end