Module: OM::XML::TerminologyBasedSolrizer

Defined in:
lib/om/xml/terminology_based_solrizer.rb

Overview

This module is only suitable to mix into Classes that use the OM::XML::Document Module

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#field_mapperObject

Instance Methods


76
77
78
# File 'lib/om/xml/terminology_based_solrizer.rb', line 76

def field_mapper
  @field_mapper
end

Class Method Details

.included(klass) ⇒ Object


4
5
6
7
# File 'lib/om/xml/terminology_based_solrizer.rb', line 4

def self.included(klass)
  klass.send(:include, ::Solrizer::Common)
  klass.send(:extend, ClassMethods)
end

Instance Method Details

#solrize_node(node, term_pointer, term, solr_doc = Hash.new, field_mapper = self.field_mapper, opts = {}) ⇒ Object


86
87
88
# File 'lib/om/xml/terminology_based_solrizer.rb', line 86

def solrize_node(node, term_pointer, term, solr_doc = Hash.new, field_mapper = self.field_mapper, opts={})
  self.class.solrize_node(node, self, term_pointer, term, solr_doc, field_mapper, opts)
end

#solrize_term(term, solr_doc = Hash.new, field_mapper = self.field_mapper, opts = {}) ⇒ Object


82
83
84
# File 'lib/om/xml/terminology_based_solrizer.rb', line 82

def solrize_term(term, solr_doc = Hash.new, field_mapper = self.field_mapper, opts={})
  self.class.solrize_term(self, term, solr_doc, field_mapper, opts)    
end

#to_solr(solr_doc = Hash.new, field_mapper = self.field_mapper) ⇒ Object

:nodoc:


78
79
80
# File 'lib/om/xml/terminology_based_solrizer.rb', line 78

def to_solr(solr_doc = Hash.new, field_mapper = self.field_mapper) # :nodoc:
  self.class.solrize(self, solr_doc, field_mapper)
end