solrizer 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ h2. 0.1.2
2
+
3
+ Minor: switched active-fedora gem requirement to >= 1.1.5 instead of = 1.1.5 (was breaking apps that use later versions of active-fedora)
@@ -0,0 +1,27 @@
1
+ h1. solrizer
2
+
3
+ A lightweight, configurable tool for indexing metadata into solr. Can be triggered from within your application, from the command line, or as a JMS listener.
4
+
5
+ h2. Note on Patches/Pull Requests
6
+
7
+ * Fork the project.
8
+ * Make your feature addition or bug fix.
9
+ * Add tests for it. This is important so I don't break it in a
10
+ future version unintentionally.
11
+ * Commit, do not mess with rakefile, version, or history.
12
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
+ * Send me a pull request. Bonus points for topic branches.
14
+
15
+ h2. Acknowledgements
16
+
17
+ Technical Lead: Matt Zumwalt ("MediaShelf":http://yourmediashelf.com)
18
+
19
+ Thanks to
20
+
21
+ Douglas Kim, who created the initial code base for Solrizer.
22
+ Chris Fitzpatrick, who patiently ran the first prototype through its paces for weeks.
23
+ Bess Sadler, who created the JMS integration for Solrizer, generously served as a sounding board for numerous design issues around solr indexing, and pushes the technology forward with the skill of a true engineer.
24
+
25
+ h2. Copyright
26
+
27
+ Copyright (c) 2010 Matt Zumwalt. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -62,21 +62,19 @@ class Solrizer
62
62
  #
63
63
  # This method retrieves a comprehensive list of all the unique identifiers in Fedora and
64
64
  # solrizes each object's full-text and facets into the search index
65
- #
66
65
  def solrize_objects
67
66
  # retrieve a list of all the pids in the fedora repository
68
67
  num_docs = 1000000 # modify this number to guarantee that all the objects are retrieved from the repository
69
68
  puts "WARNING: You have turned off indexing of Full Text content. Be sure to re-run indexer with @@index_full_text set to true in main.rb" if index_full_text == false
70
69
 
71
70
  if @@index_list == false
72
-
73
- pids = Repository.get_pids( num_docs )
74
- puts "Shelving #{pids.length} Fedora objects"
75
- pids.each do |pid|
76
- unless pid[0].empty? || pid[0].nil?
77
- solrize( pid )
78
- end
79
- end #pids.each
71
+
72
+ objects = Fedora::Repository.instance.find_objects(:limit=>num_docs)
73
+
74
+ puts "Shelving #{objects.length} Fedora objects"
75
+ objects.each do |object|
76
+ solrize( object )
77
+ end
80
78
 
81
79
  else
82
80
 
@@ -5,21 +5,22 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{solrizer}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Zumwalt"]
12
- s.date = %q{2010-06-17}
12
+ s.date = %q{2010-09-10}
13
13
  s.description = %q{Use solrizer to populate solr indexes from Fedora repository content or from other sources. You can run solrizer from within your apps, using the provided rake tasks, or as a JMS listener}
14
14
  s.email = %q{matt.zumwalt@yourmediashelf.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.textile"
18
18
  ]
19
19
  s.files = [
20
20
  ".gitignore",
21
+ "History.txt",
21
22
  "LICENSE",
22
- "README.rdoc",
23
+ "README.textile",
23
24
  "Rakefile",
24
25
  "VERSION",
25
26
  "config/fedora.yml",
@@ -51,7 +52,7 @@ Gem::Specification.new do |s|
51
52
  s.homepage = %q{http://github.com/projecthydra/solrizer}
52
53
  s.rdoc_options = ["--charset=UTF-8"]
53
54
  s.require_paths = ["lib"]
54
- s.rubygems_version = %q{1.3.6}
55
+ s.rubygems_version = %q{1.3.7}
55
56
  s.summary = %q{A utility for building solr indexes, usually from Fedora repository content.}
56
57
  s.test_files = [
57
58
  "spec/integration/indexer_spec.rb",
@@ -65,7 +66,7 @@ Gem::Specification.new do |s|
65
66
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
66
67
  s.specification_version = 3
67
68
 
68
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
69
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
69
70
  s.add_runtime_dependency(%q<active-fedora>, [">= 1.1.5"])
70
71
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
71
72
  else
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solrizer
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 2
9
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Matt Zumwalt
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-06-17 00:00:00 -05:00
18
+ date: 2010-09-10 00:00:00 -05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: active-fedora
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 25
27
30
  segments:
28
31
  - 1
29
32
  - 1
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: rspec
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 13
41
46
  segments:
42
47
  - 1
43
48
  - 2
@@ -53,11 +58,12 @@ extensions: []
53
58
 
54
59
  extra_rdoc_files:
55
60
  - LICENSE
56
- - README.rdoc
61
+ - README.textile
57
62
  files:
58
63
  - .gitignore
64
+ - History.txt
59
65
  - LICENSE
60
- - README.rdoc
66
+ - README.textile
61
67
  - Rakefile
62
68
  - VERSION
63
69
  - config/fedora.yml
@@ -95,23 +101,27 @@ rdoc_options:
95
101
  require_paths:
96
102
  - lib
97
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
+ none: false
98
105
  requirements:
99
106
  - - ">="
100
107
  - !ruby/object:Gem::Version
108
+ hash: 3
101
109
  segments:
102
110
  - 0
103
111
  version: "0"
104
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
105
114
  requirements:
106
115
  - - ">="
107
116
  - !ruby/object:Gem::Version
117
+ hash: 3
108
118
  segments:
109
119
  - 0
110
120
  version: "0"
111
121
  requirements: []
112
122
 
113
123
  rubyforge_project:
114
- rubygems_version: 1.3.6
124
+ rubygems_version: 1.3.7
115
125
  signing_key:
116
126
  specification_version: 3
117
127
  summary: A utility for building solr indexes, usually from Fedora repository content.
@@ -1,17 +0,0 @@
1
- = foo
2
-
3
- Description goes here.
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
- * Send me a pull request. Bonus points for topic branches.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2010 Matt Zumwalt. See LICENSE for details.