enju_oai 0.1.0.pre3 → 0.1.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/config/routes.rb +2 -0
- data/lib/enju_oai/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- metadata +3 -78
- data/spec/dummy/solr/conf/admin-extra.html +0 -31
- data/spec/dummy/solr/conf/elevate.xml +0 -36
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +0 -246
- data/spec/dummy/solr/conf/protwords.txt +0 -21
- data/spec/dummy/solr/conf/schema.xml +0 -250
- data/spec/dummy/solr/conf/scripts.conf +0 -24
- data/spec/dummy/solr/conf/solrconfig.xml +0 -934
- data/spec/dummy/solr/conf/spellings.txt +0 -2
- data/spec/dummy/solr/conf/stopwords.txt +0 -58
- data/spec/dummy/solr/conf/synonyms.txt +0 -31
- data/spec/dummy/solr/data/test/index/_c.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_c.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_c.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_c.frq +0 -0
- data/spec/dummy/solr/data/test/index/_c.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_c.prx +0 -0
- data/spec/dummy/solr/data/test/index/_c.tii +0 -0
- data/spec/dummy/solr/data/test/index/_c.tis +0 -0
- data/spec/dummy/solr/data/test/index/_d.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_d.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_d.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_d.frq +0 -0
- data/spec/dummy/solr/data/test/index/_d.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_d.prx +0 -0
- data/spec/dummy/solr/data/test/index/_d.tii +0 -0
- data/spec/dummy/solr/data/test/index/_d.tis +0 -0
- data/spec/dummy/solr/data/test/index/_e.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_e.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_e.fnm +0 -7
- data/spec/dummy/solr/data/test/index/_e.frq +0 -0
- data/spec/dummy/solr/data/test/index/_e.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_e.prx +0 -0
- data/spec/dummy/solr/data/test/index/_e.tii +0 -0
- data/spec/dummy/solr/data/test/index/_e.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1p +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
@@ -1,250 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
-->
|
18
|
-
<!--
|
19
|
-
This is the Solr schema file. This file should be named "schema.xml" and
|
20
|
-
should be in the conf directory under the solr home
|
21
|
-
(i.e. ./solr/conf/schema.xml by default)
|
22
|
-
or located where the classloader for the Solr webapp can find it.
|
23
|
-
|
24
|
-
This example schema is the recommended starting point for users.
|
25
|
-
It should be kept correct and concise, usable out-of-the-box.
|
26
|
-
|
27
|
-
For more information, on how to customize this file, please see
|
28
|
-
http://wiki.apache.org/solr/SchemaXml
|
29
|
-
|
30
|
-
PERFORMANCE NOTE: this schema includes many optional features and should not
|
31
|
-
be used for benchmarking. To improve performance one could
|
32
|
-
- set stored="false" for all fields possible (esp large fields) when you
|
33
|
-
only need to search on the field but don't need to return the original
|
34
|
-
value.
|
35
|
-
- set indexed="false" if you don't need to search on the field, but only
|
36
|
-
return the field as a result of searching on other indexed fields.
|
37
|
-
- remove all unneeded copyField statements
|
38
|
-
- for best index size and searching performance, set "index" to false
|
39
|
-
for all general text fields, use copyField to copy them to the
|
40
|
-
catchall "text" field, and use that for searching.
|
41
|
-
- For maximum indexing performance, use the StreamingUpdateSolrServer
|
42
|
-
java client.
|
43
|
-
- Remember to run the JVM in server mode, and use a higher logging level
|
44
|
-
that avoids logging every request
|
45
|
-
-->
|
46
|
-
<schema name="sunspot" version="1.0">
|
47
|
-
<types>
|
48
|
-
<!-- field type definitions. The "name" attribute is
|
49
|
-
just a label to be used by field definitions. The "class"
|
50
|
-
attribute and any other attributes determine the real
|
51
|
-
behavior of the fieldType.
|
52
|
-
Class names starting with "solr" refer to java classes in the
|
53
|
-
org.apache.solr.analysis package.
|
54
|
-
-->
|
55
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
56
|
-
<fieldType name="string" class="solr.StrField" omitNorms="true"/>
|
57
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
58
|
-
<fieldType name="tdouble" class="solr.TrieDoubleField" omitNorms="true"/>
|
59
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
60
|
-
<fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
|
61
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
62
|
-
<fieldType name="text" class="solr.TextField" omitNorms="false">
|
63
|
-
<analyzer>
|
64
|
-
<tokenizer class="solr.StandardTokenizerFactory"/>
|
65
|
-
<filter class="solr.StandardFilterFactory"/>
|
66
|
-
<filter class="solr.LowerCaseFilterFactory"/>
|
67
|
-
</analyzer>
|
68
|
-
</fieldType>
|
69
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
70
|
-
<fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
|
71
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
72
|
-
<fieldType name="date" class="solr.DateField" omitNorms="true"/>
|
73
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
74
|
-
<fieldType name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/>
|
75
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
76
|
-
<fieldType name="sfloat" class="solr.SortableFloatField" omitNorms="true"/>
|
77
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
78
|
-
<fieldType name="sint" class="solr.SortableIntField" omitNorms="true"/>
|
79
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
80
|
-
<fieldType name="slong" class="solr.SortableLongField" omitNorms="true"/>
|
81
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
82
|
-
<fieldType name="tint" class="solr.TrieIntField" omitNorms="true"/>
|
83
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
84
|
-
<fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
|
85
|
-
<!-- *** This fieldType is used by Sunspot! *** -->
|
86
|
-
<fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
|
87
|
-
|
88
|
-
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
|
89
|
-
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
|
90
|
-
</types>
|
91
|
-
<fields>
|
92
|
-
<!-- Valid attributes for fields:
|
93
|
-
name: mandatory - the name for the field
|
94
|
-
type: mandatory - the name of a previously defined type from the
|
95
|
-
<types> section
|
96
|
-
indexed: true if this field should be indexed (searchable or sortable)
|
97
|
-
stored: true if this field should be retrievable
|
98
|
-
compressed: [false] if this field should be stored using gzip compression
|
99
|
-
(this will only apply if the field type is compressable; among
|
100
|
-
the standard field types, only TextField and StrField are)
|
101
|
-
multiValued: true if this field may contain multiple values per document
|
102
|
-
omitNorms: (expert) set to true to omit the norms associated with
|
103
|
-
this field (this disables length normalization and index-time
|
104
|
-
boosting for the field, and saves some memory). Only full-text
|
105
|
-
fields or fields that need an index-time boost need norms.
|
106
|
-
termVectors: [false] set to true to store the term vector for a
|
107
|
-
given field.
|
108
|
-
When using MoreLikeThis, fields used for similarity should be
|
109
|
-
stored for best performance.
|
110
|
-
termPositions: Store position information with the term vector.
|
111
|
-
This will increase storage costs.
|
112
|
-
termOffsets: Store offset information with the term vector. This
|
113
|
-
will increase storage costs.
|
114
|
-
default: a value that should be used if no value is specified
|
115
|
-
when adding a document.
|
116
|
-
-->
|
117
|
-
<!-- *** This field is used by Sunspot! *** -->
|
118
|
-
<field name="id" stored="true" type="string" multiValued="false" indexed="true"/>
|
119
|
-
<!-- *** This field is used by Sunspot! *** -->
|
120
|
-
<field name="type" stored="false" type="string" multiValued="true" indexed="true"/>
|
121
|
-
<!-- *** This field is used by Sunspot! *** -->
|
122
|
-
<field name="class_name" stored="false" type="string" multiValued="false" indexed="true"/>
|
123
|
-
<!-- *** This field is used by Sunspot! *** -->
|
124
|
-
<field name="text" stored="false" type="string" multiValued="true" indexed="true"/>
|
125
|
-
<!-- *** This field is used by Sunspot! *** -->
|
126
|
-
<field name="lat" stored="true" type="tdouble" multiValued="false" indexed="true"/>
|
127
|
-
<!-- *** This field is used by Sunspot! *** -->
|
128
|
-
<field name="lng" stored="true" type="tdouble" multiValued="false" indexed="true"/>
|
129
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
130
|
-
<dynamicField name="random_*" stored="false" type="rand" multiValued="false" indexed="true"/>
|
131
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
132
|
-
<dynamicField name="_local*" stored="false" type="tdouble" multiValued="false" indexed="true"/>
|
133
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
134
|
-
<dynamicField name="*_text" stored="false" type="text" multiValued="true" indexed="true"/>
|
135
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
136
|
-
<dynamicField name="*_texts" stored="true" type="text" multiValued="true" indexed="true"/>
|
137
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
138
|
-
<dynamicField name="*_b" stored="false" type="boolean" multiValued="false" indexed="true"/>
|
139
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
140
|
-
<dynamicField name="*_bm" stored="false" type="boolean" multiValued="true" indexed="true"/>
|
141
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
142
|
-
<dynamicField name="*_bs" stored="true" type="boolean" multiValued="false" indexed="true"/>
|
143
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
144
|
-
<dynamicField name="*_bms" stored="true" type="boolean" multiValued="true" indexed="true"/>
|
145
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
146
|
-
<dynamicField name="*_d" stored="false" type="date" multiValued="false" indexed="true"/>
|
147
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
148
|
-
<dynamicField name="*_dm" stored="false" type="date" multiValued="true" indexed="true"/>
|
149
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
150
|
-
<dynamicField name="*_ds" stored="true" type="date" multiValued="false" indexed="true"/>
|
151
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
152
|
-
<dynamicField name="*_dms" stored="true" type="date" multiValued="true" indexed="true"/>
|
153
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
154
|
-
<dynamicField name="*_e" stored="false" type="sdouble" multiValued="false" indexed="true"/>
|
155
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
156
|
-
<dynamicField name="*_em" stored="false" type="sdouble" multiValued="true" indexed="true"/>
|
157
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
158
|
-
<dynamicField name="*_es" stored="true" type="sdouble" multiValued="false" indexed="true"/>
|
159
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
160
|
-
<dynamicField name="*_ems" stored="true" type="sdouble" multiValued="true" indexed="true"/>
|
161
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
162
|
-
<dynamicField name="*_f" stored="false" type="sfloat" multiValued="false" indexed="true"/>
|
163
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
164
|
-
<dynamicField name="*_fm" stored="false" type="sfloat" multiValued="true" indexed="true"/>
|
165
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
166
|
-
<dynamicField name="*_fs" stored="true" type="sfloat" multiValued="false" indexed="true"/>
|
167
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
168
|
-
<dynamicField name="*_fms" stored="true" type="sfloat" multiValued="true" indexed="true"/>
|
169
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
170
|
-
<dynamicField name="*_i" stored="false" type="sint" multiValued="false" indexed="true"/>
|
171
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
172
|
-
<dynamicField name="*_im" stored="false" type="sint" multiValued="true" indexed="true"/>
|
173
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
174
|
-
<dynamicField name="*_is" stored="true" type="sint" multiValued="false" indexed="true"/>
|
175
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
176
|
-
<dynamicField name="*_ims" stored="true" type="sint" multiValued="true" indexed="true"/>
|
177
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
178
|
-
<dynamicField name="*_l" stored="false" type="slong" multiValued="false" indexed="true"/>
|
179
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
180
|
-
<dynamicField name="*_lm" stored="false" type="slong" multiValued="true" indexed="true"/>
|
181
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
182
|
-
<dynamicField name="*_ls" stored="true" type="slong" multiValued="false" indexed="true"/>
|
183
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
184
|
-
<dynamicField name="*_lms" stored="true" type="slong" multiValued="true" indexed="true"/>
|
185
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
186
|
-
<dynamicField name="*_s" stored="false" type="string" multiValued="false" indexed="true"/>
|
187
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
188
|
-
<dynamicField name="*_sm" stored="false" type="string" multiValued="true" indexed="true"/>
|
189
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
190
|
-
<dynamicField name="*_ss" stored="true" type="string" multiValued="false" indexed="true"/>
|
191
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
192
|
-
<dynamicField name="*_sms" stored="true" type="string" multiValued="true" indexed="true"/>
|
193
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
194
|
-
<dynamicField name="*_it" stored="false" type="tint" multiValued="false" indexed="true"/>
|
195
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
196
|
-
<dynamicField name="*_itm" stored="false" type="tint" multiValued="true" indexed="true"/>
|
197
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
198
|
-
<dynamicField name="*_its" stored="true" type="tint" multiValued="false" indexed="true"/>
|
199
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
200
|
-
<dynamicField name="*_itms" stored="true" type="tint" multiValued="true" indexed="true"/>
|
201
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
202
|
-
<dynamicField name="*_ft" stored="false" type="tfloat" multiValued="false" indexed="true"/>
|
203
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
204
|
-
<dynamicField name="*_ftm" stored="false" type="tfloat" multiValued="true" indexed="true"/>
|
205
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
206
|
-
<dynamicField name="*_fts" stored="true" type="tfloat" multiValued="false" indexed="true"/>
|
207
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
208
|
-
<dynamicField name="*_ftms" stored="true" type="tfloat" multiValued="true" indexed="true"/>
|
209
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
210
|
-
<dynamicField name="*_dt" stored="false" type="tdate" multiValued="false" indexed="true"/>
|
211
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
212
|
-
<dynamicField name="*_dtm" stored="false" type="tdate" multiValued="true" indexed="true"/>
|
213
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
214
|
-
<dynamicField name="*_dts" stored="true" type="tdate" multiValued="false" indexed="true"/>
|
215
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
216
|
-
<dynamicField name="*_dtms" stored="true" type="tdate" multiValued="true" indexed="true"/>
|
217
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
218
|
-
<dynamicField name="*_textv" stored="false" termVectors="true" type="text" multiValued="true" indexed="true"/>
|
219
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
220
|
-
<dynamicField name="*_textsv" stored="true" termVectors="true" type="text" multiValued="true" indexed="true"/>
|
221
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
222
|
-
<dynamicField name="*_et" stored="false" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
223
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
224
|
-
<dynamicField name="*_etm" stored="false" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
225
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
226
|
-
<dynamicField name="*_ets" stored="true" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
227
|
-
<!-- *** This dynamicField is used by Sunspot! *** -->
|
228
|
-
<dynamicField name="*_etms" stored="true" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
229
|
-
|
230
|
-
<!-- Type used to index the lat and lon components for the "location" FieldType -->
|
231
|
-
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" multiValued="false"/>
|
232
|
-
<dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
|
233
|
-
|
234
|
-
<dynamicField name="*_ll" stored="false" type="location" multiValued="false" indexed="true"/>
|
235
|
-
<dynamicField name="*_llm" stored="false" type="location" multiValued="true" indexed="true"/>
|
236
|
-
<dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
|
237
|
-
<dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
|
238
|
-
</fields>
|
239
|
-
<!-- Field to use to determine and enforce document uniqueness.
|
240
|
-
Unless this field is marked with required="false", it will be a required field
|
241
|
-
-->
|
242
|
-
<uniqueKey>id</uniqueKey>
|
243
|
-
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
244
|
-
<defaultSearchField>text</defaultSearchField>
|
245
|
-
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
246
|
-
<solrQueryParser defaultOperator="AND"/>
|
247
|
-
<!-- copyField commands copy one field to another at the time a document
|
248
|
-
is added to the index. It's used either to index the same field differently,
|
249
|
-
or to add multiple fields to the same field for easier/faster searching. -->
|
250
|
-
</schema>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
-
# contributor license agreements. See the NOTICE file distributed with
|
3
|
-
# this work for additional information regarding copyright ownership.
|
4
|
-
# The ASF licenses this file to You under the Apache License, Version 2.0
|
5
|
-
# (the "License"); you may not use this file except in compliance with
|
6
|
-
# the License. You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
user=
|
17
|
-
solr_hostname=localhost
|
18
|
-
solr_port=8983
|
19
|
-
rsyncd_port=18983
|
20
|
-
data_dir=
|
21
|
-
webapp_name=solr
|
22
|
-
master_host=
|
23
|
-
master_data_dir=
|
24
|
-
master_status_dir=
|