sunspot 0.10.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +30 -0
- data/README.rdoc +59 -29
- data/Rakefile +2 -0
- data/TODO +9 -19
- data/VERSION.yml +2 -3
- data/bin/sunspot-installer +19 -0
- data/bin/sunspot-solr +28 -53
- data/installer/config/schema.yml +71 -0
- data/lib/sunspot/configuration.rb +0 -10
- data/lib/sunspot/dsl/field_query.rb +123 -7
- data/lib/sunspot/dsl/fields.rb +17 -4
- data/lib/sunspot/dsl/query.rb +11 -3
- data/lib/sunspot/dsl/scope.rb +6 -2
- data/lib/sunspot/field.rb +4 -7
- data/lib/sunspot/field_factory.rb +8 -5
- data/lib/sunspot/indexer.rb +22 -20
- data/lib/sunspot/installer/library_installer.rb +45 -0
- data/lib/sunspot/installer/schema_builder.rb +219 -0
- data/lib/sunspot/installer/solrconfig_updater.rb +90 -0
- data/lib/sunspot/installer/task_helper.rb +18 -0
- data/lib/sunspot/installer.rb +31 -0
- data/lib/sunspot/query/abstract_field_facet.rb +5 -1
- data/lib/sunspot/query/connective.rb +3 -1
- data/lib/sunspot/query/field_facet.rb +33 -1
- data/lib/sunspot/query/filter.rb +38 -0
- data/lib/sunspot/query/local.rb +10 -11
- data/lib/sunspot/query/query.rb +5 -12
- data/lib/sunspot/query/restriction.rb +2 -1
- data/lib/sunspot/query/scope.rb +1 -1
- data/lib/sunspot/query.rb +3 -3
- data/lib/sunspot/schema.rb +5 -1
- data/lib/sunspot/search/field_facet.rb +59 -15
- data/lib/sunspot/search/hit.rb +21 -10
- data/lib/sunspot/search/query_facet.rb +2 -2
- data/lib/sunspot/search.rb +86 -33
- data/lib/sunspot/server.rb +148 -0
- data/lib/sunspot/session.rb +39 -51
- data/lib/sunspot/session_proxy/abstract_session_proxy.rb +29 -0
- data/lib/sunspot/session_proxy/class_sharding_session_proxy.rb +66 -0
- data/lib/sunspot/session_proxy/id_sharding_session_proxy.rb +89 -0
- data/lib/sunspot/session_proxy/master_slave_session_proxy.rb +43 -0
- data/lib/sunspot/session_proxy/sharding_session_proxy.rb +206 -0
- data/lib/sunspot/session_proxy/thread_local_session_proxy.rb +30 -0
- data/lib/sunspot/session_proxy.rb +71 -0
- data/lib/sunspot/setup.rb +24 -10
- data/lib/sunspot/type.rb +163 -101
- data/lib/sunspot/util.rb +44 -2
- data/lib/sunspot/version.rb +3 -0
- data/lib/sunspot.rb +50 -17
- data/solr/etc/jetty.xml +4 -2
- data/solr/solr/conf/admin-extra.html +31 -0
- data/solr/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/solr/conf/schema.xml +212 -50
- data/solr/solr/conf/scripts.conf +24 -0
- data/solr/solr/conf/solrconfig.xml +473 -266
- data/solr/solr/conf/spellings.txt +2 -0
- data/solr/solr/conf/stopwords.txt +1 -0
- data/solr/solr/lib/lucene-spatial-2.9.1.jar +0 -0
- data/solr/solr/lib/solr-spatial-light-0.0.3.jar +0 -0
- data/solr/webapps/solr.war +0 -0
- data/spec/api/binding_spec.rb +38 -0
- data/spec/api/indexer/attributes_spec.rb +37 -4
- data/spec/api/indexer/dynamic_fields_spec.rb +10 -1
- data/spec/api/indexer/removal_spec.rb +8 -1
- data/spec/api/indexer_spec.rb +10 -0
- data/spec/api/query/dsl_spec.rb +6 -0
- data/spec/api/query/dynamic_fields_spec.rb +9 -9
- data/spec/api/query/facet_local_params_spec.rb +103 -0
- data/spec/api/query/local_spec.rb +13 -37
- data/spec/api/query/ordering_pagination_spec.rb +0 -6
- data/spec/api/search/dynamic_fields_spec.rb +3 -3
- data/spec/api/search/faceting_spec.rb +113 -10
- data/spec/api/search/hits_spec.rb +49 -0
- data/spec/api/search/results_spec.rb +8 -1
- data/spec/api/server_spec.rb +85 -0
- data/spec/api/session_proxy/class_sharding_session_proxy_spec.rb +85 -0
- data/spec/api/session_proxy/id_sharding_session_proxy_spec.rb +30 -0
- data/spec/api/session_proxy/master_slave_session_proxy_spec.rb +41 -0
- data/spec/api/session_proxy/sharding_session_proxy_spec.rb +77 -0
- data/spec/api/session_proxy/spec_helper.rb +9 -0
- data/spec/api/session_proxy/thread_local_session_proxy_spec.rb +33 -0
- data/spec/ext.rb +11 -0
- data/spec/helpers/search_helper.rb +6 -8
- data/spec/integration/faceting_spec.rb +46 -4
- data/spec/integration/indexing_spec.rb +27 -1
- data/spec/integration/local_search_spec.rb +25 -7
- data/spec/integration/scoped_search_spec.rb +48 -36
- data/spec/mocks/comment.rb +7 -5
- data/spec/mocks/connection.rb +14 -13
- data/spec/mocks/mock_class_sharding_session_proxy.rb +24 -0
- data/spec/mocks/mock_record.rb +7 -3
- data/spec/mocks/mock_sharding_session_proxy.rb +15 -0
- data/spec/mocks/photo.rb +4 -3
- data/spec/mocks/post.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- data/tasks/gemspec.rake +26 -36
- data/tasks/rdoc.rake +9 -4
- metadata +203 -203
- data/bin/sunspot-configure-solr +0 -40
- data/solr/solr/lib/geoapi-nogenerics-2.1-M2.jar +0 -0
- data/solr/solr/lib/gt2-referencing-2.3.1.jar +0 -0
- data/solr/solr/lib/jsr108-0.01.jar +0 -0
- data/solr/solr/lib/locallucene.jar +0 -0
- data/solr/solr/lib/localsolr.jar +0 -0
- data/templates/schema.xml.erb +0 -36
data/tasks/rdoc.rake
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
-
|
2
|
-
require 'hanna/rdoctask'
|
3
|
-
|
1
|
+
begin
|
2
|
+
require 'hanna/rdoctask'
|
3
|
+
rescue LoadError
|
4
|
+
if require 'rubygems'
|
5
|
+
retry
|
6
|
+
end
|
7
|
+
# It's OK if hanna isn't installed.
|
8
|
+
end
|
4
9
|
|
5
10
|
Rake::RDocTask.new(:doc) do |rdoc|
|
6
|
-
version =
|
11
|
+
version = Sunspot::VERSION
|
7
12
|
rdoc.title = "Sunspot #{version} - Solr-powered search for Ruby objects - API Documentation"
|
8
13
|
rdoc.main = 'README.rdoc'
|
9
14
|
rdoc.rdoc_files.include('README.rdoc', 'lib/sunspot.rb', 'lib/sunspot/**/*.rb')
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 1.0.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Mat Brown
|
@@ -14,223 +19,228 @@ authors:
|
|
14
19
|
- Brian Atkinson
|
15
20
|
- Tom Coleman
|
16
21
|
- Matt Mitchell
|
22
|
+
- Nathan Beyer
|
17
23
|
autorequire:
|
18
24
|
bindir: bin
|
19
25
|
cert_chain: []
|
20
26
|
|
21
|
-
date: 2010-
|
27
|
+
date: 2010-03-04 00:00:00 -05:00
|
22
28
|
default_executable:
|
23
29
|
dependencies:
|
24
30
|
- !ruby/object:Gem::Dependency
|
25
31
|
name: rsolr
|
26
|
-
|
27
|
-
|
28
|
-
version_requirements: !ruby/object:Gem::Requirement
|
32
|
+
prerelease: false
|
33
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
29
34
|
requirements:
|
30
|
-
- - "
|
35
|
+
- - "="
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
37
|
+
segments:
|
38
|
+
- 0
|
39
|
+
- 12
|
40
|
+
- 1
|
41
|
+
version: 0.12.1
|
36
42
|
type: :runtime
|
37
|
-
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ~>
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: "1.0"
|
43
|
-
version:
|
43
|
+
version_requirements: *id001
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: rspec
|
46
|
-
|
47
|
-
|
48
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
prerelease: false
|
47
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
49
48
|
requirements:
|
50
49
|
- - ~>
|
51
50
|
- !ruby/object:Gem::Version
|
51
|
+
segments:
|
52
|
+
- 1
|
53
|
+
- 1
|
52
54
|
version: "1.1"
|
53
|
-
version:
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: ruby-debug
|
56
55
|
type: :development
|
57
|
-
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ~>
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: "0.10"
|
63
|
-
version:
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name: technicalpickles-jeweler
|
66
|
-
type: :development
|
67
|
-
version_requirement:
|
68
|
-
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
requirements:
|
70
|
-
- - "="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 1.2.1
|
73
|
-
version:
|
56
|
+
version_requirements: *id002
|
74
57
|
description: |
|
75
58
|
Sunspot is a library providing a powerful, all-ruby API for the Solr search engine. Sunspot manages the configuration of persistent Ruby classes for search and indexing and exposes Solr's most powerful features through a collection of DSLs. Complex search operations can be performed without hand-writing any boolean queries or building Solr parameters by hand.
|
76
59
|
|
77
60
|
email: mat@patch.com
|
78
61
|
executables:
|
79
62
|
- sunspot-solr
|
80
|
-
- sunspot-
|
63
|
+
- sunspot-installer
|
81
64
|
extensions: []
|
82
65
|
|
83
66
|
extra_rdoc_files:
|
84
67
|
- README.rdoc
|
85
68
|
files:
|
86
|
-
- History.txt
|
87
|
-
- LICENSE
|
88
|
-
- README.rdoc
|
89
69
|
- Rakefile
|
70
|
+
- README.rdoc
|
90
71
|
- TODO
|
72
|
+
- History.txt
|
91
73
|
- VERSION.yml
|
92
|
-
-
|
74
|
+
- LICENSE
|
75
|
+
- bin/sunspot-installer
|
93
76
|
- bin/sunspot-solr
|
94
|
-
-
|
95
|
-
- lib/sunspot.rb
|
77
|
+
- installer/config/schema.yml
|
78
|
+
- lib/sunspot/session.rb
|
79
|
+
- lib/sunspot/type.rb
|
80
|
+
- lib/sunspot/version.rb
|
81
|
+
- lib/sunspot/search/facet_row.rb
|
82
|
+
- lib/sunspot/search/hit.rb
|
83
|
+
- lib/sunspot/search/highlight.rb
|
84
|
+
- lib/sunspot/search/query_facet.rb
|
85
|
+
- lib/sunspot/search/field_facet.rb
|
86
|
+
- lib/sunspot/search/date_facet.rb
|
87
|
+
- lib/sunspot/text_field_setup.rb
|
96
88
|
- lib/sunspot/adapters.rb
|
97
|
-
- lib/sunspot/composite_setup.rb
|
98
|
-
- lib/sunspot/configuration.rb
|
99
|
-
- lib/sunspot/data_extractor.rb
|
100
|
-
- lib/sunspot/dsl.rb
|
101
|
-
- lib/sunspot/dsl/field_query.rb
|
102
|
-
- lib/sunspot/dsl/fields.rb
|
103
|
-
- lib/sunspot/dsl/fulltext.rb
|
104
|
-
- lib/sunspot/dsl/query.rb
|
105
|
-
- lib/sunspot/dsl/query_facet.rb
|
106
|
-
- lib/sunspot/dsl/restriction.rb
|
107
|
-
- lib/sunspot/dsl/scope.rb
|
108
|
-
- lib/sunspot/dsl/search.rb
|
109
|
-
- lib/sunspot/field.rb
|
110
|
-
- lib/sunspot/field_factory.rb
|
111
|
-
- lib/sunspot/indexer.rb
|
112
|
-
- lib/sunspot/query.rb
|
113
|
-
- lib/sunspot/query/abstract_field_facet.rb
|
114
|
-
- lib/sunspot/query/boost_query.rb
|
115
|
-
- lib/sunspot/query/connective.rb
|
116
|
-
- lib/sunspot/query/date_field_facet.rb
|
117
89
|
- lib/sunspot/query/dismax.rb
|
118
|
-
- lib/sunspot/query/
|
90
|
+
- lib/sunspot/query/sort.rb
|
91
|
+
- lib/sunspot/query/connective.rb
|
119
92
|
- lib/sunspot/query/highlighting.rb
|
120
|
-
- lib/sunspot/query/local.rb
|
121
|
-
- lib/sunspot/query/pagination.rb
|
122
|
-
- lib/sunspot/query/query.rb
|
123
|
-
- lib/sunspot/query/query_facet.rb
|
124
|
-
- lib/sunspot/query/restriction.rb
|
125
93
|
- lib/sunspot/query/scope.rb
|
126
|
-
- lib/sunspot/query/
|
94
|
+
- lib/sunspot/query/restriction.rb
|
127
95
|
- lib/sunspot/query/sort_composite.rb
|
96
|
+
- lib/sunspot/query/filter.rb
|
97
|
+
- lib/sunspot/query/pagination.rb
|
98
|
+
- lib/sunspot/query/abstract_field_facet.rb
|
99
|
+
- lib/sunspot/query/boost_query.rb
|
100
|
+
- lib/sunspot/query/query_facet.rb
|
101
|
+
- lib/sunspot/query/date_field_facet.rb
|
128
102
|
- lib/sunspot/query/text_field_boost.rb
|
103
|
+
- lib/sunspot/query/local.rb
|
104
|
+
- lib/sunspot/query/query.rb
|
105
|
+
- lib/sunspot/query/field_facet.rb
|
106
|
+
- lib/sunspot/session_proxy/thread_local_session_proxy.rb
|
107
|
+
- lib/sunspot/session_proxy/class_sharding_session_proxy.rb
|
108
|
+
- lib/sunspot/session_proxy/master_slave_session_proxy.rb
|
109
|
+
- lib/sunspot/session_proxy/abstract_session_proxy.rb
|
110
|
+
- lib/sunspot/session_proxy/id_sharding_session_proxy.rb
|
111
|
+
- lib/sunspot/session_proxy/sharding_session_proxy.rb
|
129
112
|
- lib/sunspot/schema.rb
|
113
|
+
- lib/sunspot/configuration.rb
|
114
|
+
- lib/sunspot/installer/solrconfig_updater.rb
|
115
|
+
- lib/sunspot/installer/library_installer.rb
|
116
|
+
- lib/sunspot/installer/schema_builder.rb
|
117
|
+
- lib/sunspot/installer/task_helper.rb
|
118
|
+
- lib/sunspot/server.rb
|
119
|
+
- lib/sunspot/dsl.rb
|
130
120
|
- lib/sunspot/search.rb
|
131
|
-
- lib/sunspot/
|
132
|
-
- lib/sunspot/
|
133
|
-
- lib/sunspot/search/field_facet.rb
|
134
|
-
- lib/sunspot/search/highlight.rb
|
135
|
-
- lib/sunspot/search/hit.rb
|
136
|
-
- lib/sunspot/search/query_facet.rb
|
137
|
-
- lib/sunspot/session.rb
|
121
|
+
- lib/sunspot/composite_setup.rb
|
122
|
+
- lib/sunspot/installer.rb
|
138
123
|
- lib/sunspot/setup.rb
|
139
|
-
- lib/sunspot/
|
140
|
-
- lib/sunspot/
|
124
|
+
- lib/sunspot/data_extractor.rb
|
125
|
+
- lib/sunspot/field.rb
|
126
|
+
- lib/sunspot/indexer.rb
|
127
|
+
- lib/sunspot/query.rb
|
141
128
|
- lib/sunspot/util.rb
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
- solr/solr/conf/stopwords.txt
|
156
|
-
- solr/solr/conf/synonyms.txt
|
157
|
-
- solr/solr/lib/geoapi-nogenerics-2.1-M2.jar
|
158
|
-
- solr/solr/lib/gt2-referencing-2.3.1.jar
|
159
|
-
- solr/solr/lib/jsr108-0.01.jar
|
160
|
-
- solr/solr/lib/locallucene.jar
|
161
|
-
- solr/solr/lib/localsolr.jar
|
162
|
-
- solr/start.jar
|
163
|
-
- solr/webapps/solr.war
|
164
|
-
- spec/api/adapters_spec.rb
|
165
|
-
- spec/api/indexer/attributes_spec.rb
|
166
|
-
- spec/api/indexer/batch_spec.rb
|
167
|
-
- spec/api/indexer/dynamic_fields_spec.rb
|
168
|
-
- spec/api/indexer/fixed_fields_spec.rb
|
169
|
-
- spec/api/indexer/fulltext_spec.rb
|
170
|
-
- spec/api/indexer/removal_spec.rb
|
171
|
-
- spec/api/indexer/spec_helper.rb
|
172
|
-
- spec/api/indexer_spec.rb
|
173
|
-
- spec/api/query/adjust_params_spec.rb
|
174
|
-
- spec/api/query/connectives_spec.rb
|
175
|
-
- spec/api/query/dsl_spec.rb
|
176
|
-
- spec/api/query/dynamic_fields_spec.rb
|
177
|
-
- spec/api/query/faceting_spec.rb
|
178
|
-
- spec/api/query/fulltext_spec.rb
|
179
|
-
- spec/api/query/highlighting_spec.rb
|
180
|
-
- spec/api/query/local_spec.rb
|
181
|
-
- spec/api/query/ordering_pagination_spec.rb
|
182
|
-
- spec/api/query/scope_spec.rb
|
183
|
-
- spec/api/query/spec_helper.rb
|
184
|
-
- spec/api/query/text_field_scoping_spec.rb
|
185
|
-
- spec/api/query/types_spec.rb
|
186
|
-
- spec/api/search/dynamic_fields_spec.rb
|
187
|
-
- spec/api/search/faceting_spec.rb
|
188
|
-
- spec/api/search/highlighting_spec.rb
|
189
|
-
- spec/api/search/hits_spec.rb
|
190
|
-
- spec/api/search/results_spec.rb
|
191
|
-
- spec/api/search/search_spec.rb
|
192
|
-
- spec/api/search/spec_helper.rb
|
193
|
-
- spec/api/session_spec.rb
|
194
|
-
- spec/api/spec_helper.rb
|
195
|
-
- spec/api/sunspot_spec.rb
|
129
|
+
- lib/sunspot/dsl/fulltext.rb
|
130
|
+
- lib/sunspot/dsl/fields.rb
|
131
|
+
- lib/sunspot/dsl/scope.rb
|
132
|
+
- lib/sunspot/dsl/restriction.rb
|
133
|
+
- lib/sunspot/dsl/search.rb
|
134
|
+
- lib/sunspot/dsl/query_facet.rb
|
135
|
+
- lib/sunspot/dsl/query.rb
|
136
|
+
- lib/sunspot/dsl/field_query.rb
|
137
|
+
- lib/sunspot/field_factory.rb
|
138
|
+
- lib/sunspot/session_proxy.rb
|
139
|
+
- lib/sunspot.rb
|
140
|
+
- lib/light_config.rb
|
141
|
+
- spec/spec_helper.rb
|
196
142
|
- spec/helpers/indexer_helper.rb
|
197
|
-
- spec/helpers/query_helper.rb
|
198
143
|
- spec/helpers/search_helper.rb
|
199
|
-
- spec/
|
144
|
+
- spec/helpers/query_helper.rb
|
145
|
+
- spec/ext.rb
|
146
|
+
- spec/integration/spec_helper.rb
|
147
|
+
- spec/integration/local_search_spec.rb
|
200
148
|
- spec/integration/faceting_spec.rb
|
149
|
+
- spec/integration/scoped_search_spec.rb
|
201
150
|
- spec/integration/highlighting_spec.rb
|
202
|
-
- spec/integration/indexing_spec.rb
|
203
151
|
- spec/integration/keyword_search_spec.rb
|
204
|
-
- spec/integration/
|
205
|
-
- spec/integration/
|
206
|
-
- spec/integration/spec_helper.rb
|
152
|
+
- spec/integration/indexing_spec.rb
|
153
|
+
- spec/integration/dynamic_fields_spec.rb
|
207
154
|
- spec/integration/stored_fields_spec.rb
|
208
155
|
- spec/integration/test_pagination.rb
|
209
|
-
- spec/mocks/
|
156
|
+
- spec/mocks/mock_record.rb
|
210
157
|
- spec/mocks/blog.rb
|
211
|
-
- spec/mocks/
|
212
|
-
- spec/mocks/
|
158
|
+
- spec/mocks/adapters.rb
|
159
|
+
- spec/mocks/mock_sharding_session_proxy.rb
|
160
|
+
- spec/mocks/mock_class_sharding_session_proxy.rb
|
213
161
|
- spec/mocks/mock_adapter.rb
|
214
|
-
- spec/mocks/
|
162
|
+
- spec/mocks/user.rb
|
215
163
|
- spec/mocks/photo.rb
|
216
164
|
- spec/mocks/post.rb
|
165
|
+
- spec/mocks/comment.rb
|
217
166
|
- spec/mocks/super_class.rb
|
218
|
-
- spec/mocks/
|
219
|
-
- spec/spec_helper.rb
|
167
|
+
- spec/mocks/connection.rb
|
168
|
+
- spec/api/spec_helper.rb
|
169
|
+
- spec/api/binding_spec.rb
|
170
|
+
- spec/api/session_spec.rb
|
171
|
+
- spec/api/indexer/spec_helper.rb
|
172
|
+
- spec/api/indexer/fixed_fields_spec.rb
|
173
|
+
- spec/api/indexer/attributes_spec.rb
|
174
|
+
- spec/api/indexer/dynamic_fields_spec.rb
|
175
|
+
- spec/api/indexer/fulltext_spec.rb
|
176
|
+
- spec/api/indexer/removal_spec.rb
|
177
|
+
- spec/api/indexer/batch_spec.rb
|
178
|
+
- spec/api/search/spec_helper.rb
|
179
|
+
- spec/api/search/hits_spec.rb
|
180
|
+
- spec/api/search/faceting_spec.rb
|
181
|
+
- spec/api/search/highlighting_spec.rb
|
182
|
+
- spec/api/search/dynamic_fields_spec.rb
|
183
|
+
- spec/api/search/search_spec.rb
|
184
|
+
- spec/api/search/results_spec.rb
|
185
|
+
- spec/api/adapters_spec.rb
|
186
|
+
- spec/api/server_spec.rb
|
187
|
+
- spec/api/query/dsl_spec.rb
|
188
|
+
- spec/api/query/spec_helper.rb
|
189
|
+
- spec/api/query/faceting_spec.rb
|
190
|
+
- spec/api/query/connectives_spec.rb
|
191
|
+
- spec/api/query/adjust_params_spec.rb
|
192
|
+
- spec/api/query/local_spec.rb
|
193
|
+
- spec/api/query/highlighting_spec.rb
|
194
|
+
- spec/api/query/ordering_pagination_spec.rb
|
195
|
+
- spec/api/query/dynamic_fields_spec.rb
|
196
|
+
- spec/api/query/types_spec.rb
|
197
|
+
- spec/api/query/scope_spec.rb
|
198
|
+
- spec/api/query/facet_local_params_spec.rb
|
199
|
+
- spec/api/query/text_field_scoping_spec.rb
|
200
|
+
- spec/api/query/fulltext_spec.rb
|
201
|
+
- spec/api/session_proxy/spec_helper.rb
|
202
|
+
- spec/api/session_proxy/master_slave_session_proxy_spec.rb
|
203
|
+
- spec/api/session_proxy/class_sharding_session_proxy_spec.rb
|
204
|
+
- spec/api/session_proxy/id_sharding_session_proxy_spec.rb
|
205
|
+
- spec/api/session_proxy/sharding_session_proxy_spec.rb
|
206
|
+
- spec/api/session_proxy/thread_local_session_proxy_spec.rb
|
207
|
+
- spec/api/sunspot_spec.rb
|
208
|
+
- spec/api/indexer_spec.rb
|
209
|
+
- tasks/schema.rake
|
220
210
|
- tasks/gemspec.rake
|
221
211
|
- tasks/rcov.rake
|
212
|
+
- tasks/todo.rake
|
222
213
|
- tasks/rdoc.rake
|
223
|
-
- tasks/schema.rake
|
224
214
|
- tasks/spec.rake
|
225
|
-
-
|
226
|
-
-
|
215
|
+
- solr/etc/webdefault.xml
|
216
|
+
- solr/etc/jetty.xml
|
217
|
+
- solr/lib/jetty-util-6.1.3.jar
|
218
|
+
- solr/lib/servlet-api-2.5-6.1.3.jar
|
219
|
+
- solr/lib/jetty-6.1.3.jar
|
220
|
+
- solr/lib/jsp-2.1/jsp-2.1.jar
|
221
|
+
- solr/lib/jsp-2.1/ant-1.6.5.jar
|
222
|
+
- solr/lib/jsp-2.1/core-3.1.1.jar
|
223
|
+
- solr/lib/jsp-2.1/jsp-api-2.1.jar
|
224
|
+
- solr/webapps/solr.war
|
225
|
+
- solr/solr/conf/elevate.xml
|
226
|
+
- solr/solr/conf/protwords.txt
|
227
|
+
- solr/solr/conf/mapping-ISOLatin1Accent.txt
|
228
|
+
- solr/solr/conf/synonyms.txt
|
229
|
+
- solr/solr/conf/admin-extra.html
|
230
|
+
- solr/solr/conf/solrconfig.xml
|
231
|
+
- solr/solr/conf/spellings.txt
|
232
|
+
- solr/solr/conf/scripts.conf
|
233
|
+
- solr/solr/conf/schema.xml
|
234
|
+
- solr/solr/conf/stopwords.txt
|
235
|
+
- solr/solr/lib/lucene-spatial-2.9.1.jar
|
236
|
+
- solr/solr/lib/solr-spatial-light-0.0.3.jar
|
237
|
+
- solr/start.jar
|
227
238
|
has_rdoc: true
|
228
239
|
homepage: http://outoftime.github.com/sunspot
|
229
240
|
licenses: []
|
230
241
|
|
231
242
|
post_install_message:
|
232
243
|
rdoc_options:
|
233
|
-
- --charset=UTF-8
|
234
244
|
- --webcvs=http://github.com/outoftime/sunspot/tree/master/%s
|
235
245
|
- --title
|
236
246
|
- Sunspot - Solr-powered search for Ruby objects - API Documentation
|
@@ -242,75 +252,65 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
242
252
|
requirements:
|
243
253
|
- - ">="
|
244
254
|
- !ruby/object:Gem::Version
|
255
|
+
segments:
|
256
|
+
- 0
|
245
257
|
version: "0"
|
246
|
-
version:
|
247
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
259
|
requirements:
|
249
260
|
- - ">="
|
250
261
|
- !ruby/object:Gem::Version
|
262
|
+
segments:
|
263
|
+
- 0
|
251
264
|
version: "0"
|
252
|
-
version:
|
253
265
|
requirements: []
|
254
266
|
|
255
267
|
rubyforge_project: sunspot
|
256
|
-
rubygems_version: 1.3.
|
268
|
+
rubygems_version: 1.3.6
|
257
269
|
signing_key:
|
258
270
|
specification_version: 3
|
259
271
|
summary: Library for expressive, powerful interaction with the Solr search engine
|
260
272
|
test_files:
|
261
|
-
- spec/
|
262
|
-
- spec/
|
263
|
-
- spec/
|
264
|
-
- spec/
|
265
|
-
- spec/
|
266
|
-
- spec/
|
267
|
-
- spec/
|
268
|
-
- spec/
|
269
|
-
- spec/api/
|
270
|
-
- spec/api/query/ordering_pagination_spec.rb
|
271
|
-
- spec/api/query/spec_helper.rb
|
272
|
-
- spec/api/query/local_spec.rb
|
273
|
-
- spec/api/query/types_spec.rb
|
274
|
-
- spec/api/query/scope_spec.rb
|
275
|
-
- spec/api/query/faceting_spec.rb
|
276
|
-
- spec/api/query/dsl_spec.rb
|
277
|
-
- spec/api/query/connectives_spec.rb
|
273
|
+
- spec/integration/local_search_spec.rb
|
274
|
+
- spec/integration/faceting_spec.rb
|
275
|
+
- spec/integration/scoped_search_spec.rb
|
276
|
+
- spec/integration/highlighting_spec.rb
|
277
|
+
- spec/integration/keyword_search_spec.rb
|
278
|
+
- spec/integration/indexing_spec.rb
|
279
|
+
- spec/integration/dynamic_fields_spec.rb
|
280
|
+
- spec/integration/stored_fields_spec.rb
|
281
|
+
- spec/api/binding_spec.rb
|
278
282
|
- spec/api/session_spec.rb
|
279
|
-
- spec/api/
|
280
|
-
- spec/api/indexer/
|
283
|
+
- spec/api/indexer/fixed_fields_spec.rb
|
284
|
+
- spec/api/indexer/attributes_spec.rb
|
281
285
|
- spec/api/indexer/dynamic_fields_spec.rb
|
286
|
+
- spec/api/indexer/fulltext_spec.rb
|
282
287
|
- spec/api/indexer/removal_spec.rb
|
283
|
-
- spec/api/indexer/spec_helper.rb
|
284
|
-
- spec/api/indexer/fixed_fields_spec.rb
|
285
288
|
- spec/api/indexer/batch_spec.rb
|
286
|
-
- spec/api/indexer/attributes_spec.rb
|
287
|
-
- spec/api/indexer_spec.rb
|
288
289
|
- spec/api/search/hits_spec.rb
|
290
|
+
- spec/api/search/faceting_spec.rb
|
291
|
+
- spec/api/search/highlighting_spec.rb
|
289
292
|
- spec/api/search/dynamic_fields_spec.rb
|
290
293
|
- spec/api/search/search_spec.rb
|
291
294
|
- spec/api/search/results_spec.rb
|
292
|
-
- spec/api/
|
293
|
-
- spec/api/
|
294
|
-
- spec/api/
|
295
|
+
- spec/api/adapters_spec.rb
|
296
|
+
- spec/api/server_spec.rb
|
297
|
+
- spec/api/query/dsl_spec.rb
|
298
|
+
- spec/api/query/faceting_spec.rb
|
299
|
+
- spec/api/query/connectives_spec.rb
|
300
|
+
- spec/api/query/adjust_params_spec.rb
|
301
|
+
- spec/api/query/local_spec.rb
|
302
|
+
- spec/api/query/highlighting_spec.rb
|
303
|
+
- spec/api/query/ordering_pagination_spec.rb
|
304
|
+
- spec/api/query/dynamic_fields_spec.rb
|
305
|
+
- spec/api/query/types_spec.rb
|
306
|
+
- spec/api/query/scope_spec.rb
|
307
|
+
- spec/api/query/facet_local_params_spec.rb
|
308
|
+
- spec/api/query/text_field_scoping_spec.rb
|
309
|
+
- spec/api/query/fulltext_spec.rb
|
310
|
+
- spec/api/session_proxy/master_slave_session_proxy_spec.rb
|
311
|
+
- spec/api/session_proxy/class_sharding_session_proxy_spec.rb
|
312
|
+
- spec/api/session_proxy/id_sharding_session_proxy_spec.rb
|
313
|
+
- spec/api/session_proxy/sharding_session_proxy_spec.rb
|
314
|
+
- spec/api/session_proxy/thread_local_session_proxy_spec.rb
|
295
315
|
- spec/api/sunspot_spec.rb
|
296
|
-
- spec/
|
297
|
-
- spec/mocks/comment.rb
|
298
|
-
- spec/mocks/photo.rb
|
299
|
-
- spec/mocks/post.rb
|
300
|
-
- spec/mocks/super_class.rb
|
301
|
-
- spec/mocks/blog.rb
|
302
|
-
- spec/mocks/adapters.rb
|
303
|
-
- spec/mocks/mock_adapter.rb
|
304
|
-
- spec/mocks/mock_record.rb
|
305
|
-
- spec/mocks/user.rb
|
306
|
-
- spec/integration/dynamic_fields_spec.rb
|
307
|
-
- spec/integration/stored_fields_spec.rb
|
308
|
-
- spec/integration/highlighting_spec.rb
|
309
|
-
- spec/integration/local_search_spec.rb
|
310
|
-
- spec/integration/spec_helper.rb
|
311
|
-
- spec/integration/indexing_spec.rb
|
312
|
-
- spec/integration/keyword_search_spec.rb
|
313
|
-
- spec/integration/test_pagination.rb
|
314
|
-
- spec/integration/faceting_spec.rb
|
315
|
-
- spec/integration/scoped_search_spec.rb
|
316
|
-
- spec/spec_helper.rb
|
316
|
+
- spec/api/indexer_spec.rb
|
data/bin/sunspot-configure-solr
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'fileutils'
|
4
|
-
require 'optparse'
|
5
|
-
require File.join(File.dirname(__FILE__), '..', 'lib', 'sunspot', 'schema')
|
6
|
-
|
7
|
-
solr_directory = FileUtils.pwd
|
8
|
-
|
9
|
-
schema = Sunspot::Schema.new
|
10
|
-
|
11
|
-
OptionParser.new do |opts|
|
12
|
-
opts.banner = 'Usage: sunspot-configure-solr [options]'
|
13
|
-
|
14
|
-
opts.on '--tokenizer=TOKENIZER', 'Tokenizer class to use' do |tokenizer|
|
15
|
-
schema.tokenizer = tokenizer
|
16
|
-
end
|
17
|
-
|
18
|
-
opts.on '--extra-filter=EXTRA_FILTER', 'Extra filters for tokenized text (you may specify this multiple times)' do |extra_filter|
|
19
|
-
schema.add_filter(extra_filter)
|
20
|
-
end
|
21
|
-
|
22
|
-
opts.on '--dir=CONF_DIR', 'Directory containing Solr configuration and schema' do |dir|
|
23
|
-
solr_directory = File.expand_path(dir)
|
24
|
-
end
|
25
|
-
end.parse!
|
26
|
-
|
27
|
-
conf_directory = File.join(solr_directory, 'conf')
|
28
|
-
schema_file = File.join(conf_directory, 'schema.xml')
|
29
|
-
|
30
|
-
FileUtils.mkdir_p(conf_directory)
|
31
|
-
|
32
|
-
if File.exist?(schema_file)
|
33
|
-
backup_file = File.join(conf_directory, "schema-#{File.mtime(schema_file).strftime('%Y%m%d%H%M%S')}.xml")
|
34
|
-
STDERR.puts("Backing up current schema file to #{File.expand_path(backup_file)}")
|
35
|
-
FileUtils.mv(schema_file, backup_file)
|
36
|
-
end
|
37
|
-
|
38
|
-
File.open(File.join(conf_directory, 'schema.xml'), 'w') do |file|
|
39
|
-
file << schema.to_xml
|
40
|
-
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/solr/solr/lib/localsolr.jar
DELETED
Binary file
|
data/templates/schema.xml.erb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<schema version="0.9" name="sunspot">
|
3
|
-
<types>
|
4
|
-
<fieldtype class="solr.TextField" positionIncrementGap="100" name="text">
|
5
|
-
<analyzer>
|
6
|
-
<tokenizer class="<%= tokenizer %>"/>
|
7
|
-
<%- filters.each do |filter| -%>
|
8
|
-
<filter class="<%= filter %>"/>
|
9
|
-
<%- end -%>
|
10
|
-
</analyzer>
|
11
|
-
</fieldtype>
|
12
|
-
<fieldtype class="solr.RandomSortField" name="rand"/>
|
13
|
-
<%- types.each do |type| -%>
|
14
|
-
<fieldtype name="<%= type.name %>" class="solr.<%= type.class_name %>Field" omitNorms="true"/>
|
15
|
-
<%- end -%>
|
16
|
-
</types>
|
17
|
-
<fields>
|
18
|
-
<field name="id" type="string" indexed="true" stored="true" multiValued="false" />
|
19
|
-
<field name="type" type="string" indexed="true" stored="false" multiValued="true" />
|
20
|
-
<field name="class_name" type="string" indexed="true" stored="false" multiValued="false" />
|
21
|
-
<field name="text" type="text" indexed="true" stored="false" multiValued="true" />
|
22
|
-
<field name="lat" type="sdouble" indexed="true" stored="true" multiValued="false" />
|
23
|
-
<field name="long" type="sdouble" indexed="true" stored="true" multiValued="false" />
|
24
|
-
<dynamicField name="*_text" type="text" indexed="true" stored="false" multiValued="true" />
|
25
|
-
<dynamicField name="*_texts" type="text" indexed="true" stored="true" multiValued="true" />
|
26
|
-
<dynamicField name="random_*" type="rand" indexed="true" stored="false" multiValued="false" />
|
27
|
-
<dynamicField name="_local*" type="sdouble" indexed="true" stored="false" multiValued="false" />
|
28
|
-
<%- dynamic_fields.each do |dynamic_field| -%>
|
29
|
-
<dynamicField name="<%= dynamic_field.name %>" type="<%= dynamic_field.type %>" indexed="true" stored="<%= dynamic_field.stored? %>" multiValued="<%= dynamic_field.multiValued? %>" />
|
30
|
-
<%- end -%>
|
31
|
-
</fields>
|
32
|
-
<uniqueKey>id</uniqueKey>
|
33
|
-
<defaultSearchField>text</defaultSearchField>
|
34
|
-
<solrQueryParser defaultOperator="AND"/>
|
35
|
-
<copyField dest="text" source="*_text"/>
|
36
|
-
</schema>
|