Skip to content

Commit

Permalink
Move TerminologyBasedSolrizer into OM
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Feb 3, 2013
1 parent ab1f2bc commit 52a3650
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 301 deletions.
3 changes: 0 additions & 3 deletions lib/solrizer/extractor.rb
@@ -1,6 +1,3 @@
require "nokogiri"
require 'yaml'

module Solrizer

# Provides utilities for extracting solr fields from a variety of objects and/or creating solr documents from a given object
Expand Down
2 changes: 0 additions & 2 deletions lib/solrizer/field_mapper.rb
Expand Up @@ -34,8 +34,6 @@ class UnknownIndexMacro < SolrizerError; end #nodoc#
# # t.dish_name :index_as => [:some_field_type] -maps to-> dish_name_ssim
# # t.ingredients :index_as => [:some_field_type, :edible] -maps to-> ingredients_ssim, ingredients_food
#
# (See Solrizer::XML::TerminologyBasedSolrizer for instructions on applying a custom mapping once you have defined it.)
#
#
# == Custom Value Converters
#
Expand Down
4 changes: 1 addition & 3 deletions lib/solrizer/xml.rb
@@ -1,7 +1,5 @@
require "solrizer"
require "om"
module Solrizer::XML
end
Dir[File.join(File.dirname(__FILE__),"xml","*.rb")].each {|file| require file }

Solrizer::Extractor.send(:include, Solrizer::XML::Extractor)
Solrizer::Extractor.send(:include, Solrizer::XML::Extractor)
2 changes: 1 addition & 1 deletion lib/solrizer/xml/extractor.rb
Expand Up @@ -4,7 +4,7 @@ module Solrizer::XML::Extractor

#
# This method extracts solr fields from simple xml
# If you want to do anything more nuanced with the xml, use TerminologyBasedSolrizer instead.
# If you want to do anything more nuanced with the xml, use OM instead.
#
# @param [xml] text xml content to index
# @param [Hash] solr_doc
Expand Down
92 changes: 0 additions & 92 deletions lib/solrizer/xml/terminology_based_solrizer.rb

This file was deleted.

1 change: 0 additions & 1 deletion solrizer.gemspec
Expand Up @@ -13,7 +13,6 @@ Gem::Specification.new do |s|
s.description = %q{Use solrizer to populate solr indexes. You can run solrizer from within your app, using the provided rake tasks, or as a JMS listener}

s.add_dependency "nokogiri"
s.add_dependency "om", ">=1.5.0"
s.add_dependency "xml-simple"
s.add_dependency "mediashelf-loggable", "~>0.4.7"
s.add_dependency "stomp"
Expand Down
90 changes: 0 additions & 90 deletions spec/fixtures/mods_article.rb

This file was deleted.

109 changes: 0 additions & 109 deletions spec/units/xml_terminology_based_solrizer_spec.rb

This file was deleted.

0 comments on commit 52a3650

Please sign in to comment.