solr-ruby 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/solr.rb +18 -0
- data/lib/solr/connection.rb +158 -0
- data/lib/solr/document.rb +71 -0
- data/lib/solr/exception.rb +13 -0
- data/lib/solr/field.rb +35 -0
- data/lib/solr/request.rb +24 -0
- data/lib/solr/request/add_document.rb +63 -0
- data/lib/solr/request/base.rb +29 -0
- data/lib/solr/request/commit.rb +21 -0
- data/lib/solr/request/delete.rb +50 -0
- data/lib/solr/request/dismax.rb +43 -0
- data/lib/solr/request/index_info.rb +17 -0
- data/lib/solr/request/optimize.rb +21 -0
- data/lib/solr/request/ping.rb +36 -0
- data/lib/solr/request/select.rb +54 -0
- data/lib/solr/request/standard.rb +105 -0
- data/lib/solr/request/update.rb +22 -0
- data/lib/solr/response.rb +24 -0
- data/lib/solr/response/add_document.rb +17 -0
- data/lib/solr/response/base.rb +42 -0
- data/lib/solr/response/commit.rb +32 -0
- data/lib/solr/response/delete.rb +13 -0
- data/lib/solr/response/dismax.rb +8 -0
- data/lib/solr/response/index_info.rb +26 -0
- data/lib/solr/response/optimize.rb +14 -0
- data/lib/solr/response/ping.rb +28 -0
- data/lib/solr/response/ruby.rb +42 -0
- data/lib/solr/response/standard.rb +60 -0
- data/lib/solr/response/xml.rb +37 -0
- data/lib/solr/xml.rb +47 -0
- data/test/unit/add_document_test.rb +40 -0
- data/test/unit/commit_test.rb +41 -0
- data/test/unit/connection_test.rb +55 -0
- data/test/unit/delete_test.rb +56 -0
- data/test/unit/dismax_request_test.rb +26 -0
- data/test/unit/document_test.rb +59 -0
- data/test/unit/field_test.rb +42 -0
- data/test/unit/ping_test.rb +51 -0
- data/test/unit/request_test.rb +61 -0
- data/test/unit/response_test.rb +42 -0
- data/test/unit/solr_mock_base.rb +40 -0
- data/test/unit/standard_request_test.rb +108 -0
- data/test/unit/standard_response_test.rb +174 -0
- data/test/unit/suite.rb +25 -0
- metadata +92 -0
data/test/unit/suite.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
2
|
+
# (the "License"); you may not use this file except in compliance with
|
3
|
+
# the License. You may obtain a copy of the License at
|
4
|
+
#
|
5
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and
|
11
|
+
# limitations under the License.
|
12
|
+
|
13
|
+
# TODO dynamically require all *_test files
|
14
|
+
|
15
|
+
require 'add_document_test'
|
16
|
+
require 'commit_test'
|
17
|
+
require 'connection_test'
|
18
|
+
require 'delete_test'
|
19
|
+
require 'document_test'
|
20
|
+
require 'field_test'
|
21
|
+
require 'ping_test'
|
22
|
+
require 'request_test'
|
23
|
+
require 'response_test'
|
24
|
+
require 'standard_request_test'
|
25
|
+
require 'standard_response_test'
|
metadata
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.0
|
3
|
+
specification_version: 1
|
4
|
+
name: solr-ruby
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.0.1
|
7
|
+
date: 2007-02-15 00:00:00 -05:00
|
8
|
+
summary: Ruby library for working with Apache Solr
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: solr-user@lucene.apache.org
|
12
|
+
homepage: http://wiki.apache.org/solr/Flare
|
13
|
+
rubyforge_project:
|
14
|
+
description:
|
15
|
+
autorequire: solr
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Apache Solr
|
31
|
+
files:
|
32
|
+
- lib/solr
|
33
|
+
- lib/solr.rb
|
34
|
+
- lib/solr/connection.rb
|
35
|
+
- lib/solr/document.rb
|
36
|
+
- lib/solr/exception.rb
|
37
|
+
- lib/solr/field.rb
|
38
|
+
- lib/solr/request
|
39
|
+
- lib/solr/request.rb
|
40
|
+
- lib/solr/response
|
41
|
+
- lib/solr/response.rb
|
42
|
+
- lib/solr/xml.rb
|
43
|
+
- lib/solr/request/add_document.rb
|
44
|
+
- lib/solr/request/base.rb
|
45
|
+
- lib/solr/request/commit.rb
|
46
|
+
- lib/solr/request/delete.rb
|
47
|
+
- lib/solr/request/dismax.rb
|
48
|
+
- lib/solr/request/index_info.rb
|
49
|
+
- lib/solr/request/optimize.rb
|
50
|
+
- lib/solr/request/ping.rb
|
51
|
+
- lib/solr/request/select.rb
|
52
|
+
- lib/solr/request/standard.rb
|
53
|
+
- lib/solr/request/update.rb
|
54
|
+
- lib/solr/response/add_document.rb
|
55
|
+
- lib/solr/response/base.rb
|
56
|
+
- lib/solr/response/commit.rb
|
57
|
+
- lib/solr/response/delete.rb
|
58
|
+
- lib/solr/response/dismax.rb
|
59
|
+
- lib/solr/response/index_info.rb
|
60
|
+
- lib/solr/response/optimize.rb
|
61
|
+
- lib/solr/response/ping.rb
|
62
|
+
- lib/solr/response/ruby.rb
|
63
|
+
- lib/solr/response/standard.rb
|
64
|
+
- lib/solr/response/xml.rb
|
65
|
+
- test/unit/add_document_test.rb
|
66
|
+
- test/unit/commit_test.rb
|
67
|
+
- test/unit/connection_test.rb
|
68
|
+
- test/unit/delete_test.rb
|
69
|
+
- test/unit/dismax_request_test.rb
|
70
|
+
- test/unit/document_test.rb
|
71
|
+
- test/unit/field_test.rb
|
72
|
+
- test/unit/ping_test.rb
|
73
|
+
- test/unit/request_test.rb
|
74
|
+
- test/unit/response_test.rb
|
75
|
+
- test/unit/solr_mock_base.rb
|
76
|
+
- test/unit/standard_request_test.rb
|
77
|
+
- test/unit/standard_response_test.rb
|
78
|
+
- test/unit/suite.rb
|
79
|
+
test_files: []
|
80
|
+
|
81
|
+
rdoc_options: []
|
82
|
+
|
83
|
+
extra_rdoc_files: []
|
84
|
+
|
85
|
+
executables: []
|
86
|
+
|
87
|
+
extensions: []
|
88
|
+
|
89
|
+
requirements: []
|
90
|
+
|
91
|
+
dependencies: []
|
92
|
+
|