enju_ndl 0.2.0.beta.2 → 0.2.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enju_ndl/ndl_search.rb +9 -2
- data/lib/enju_ndl/version.rb +1 -1
- data/spec/cassette_library/NdlBook/import/should_import_even_with_invalid_url.yml +174 -0
- data/spec/controllers/ndl_books_controller_spec.rb +1 -1
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/db/migrate/059_create_libraries.rb +7 -9
- data/spec/dummy/db/migrate/069_create_shelves.rb +3 -4
- data/spec/dummy/db/migrate/080_create_library_groups.rb +2 -3
- data/spec/dummy/db/migrate/120_create_baskets.rb +2 -3
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +4 -7
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +4 -5
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +3 -6
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +2 -2
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -2
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140821151023_create_colors.rb +1 -3
- data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +3 -5
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +19 -6
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +15 -2
- data/spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb +9 -0
- data/spec/dummy/db/schema.rb +26 -10
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/conf/admin-extra.html +31 -0
- data/spec/dummy/solr/conf/elevate.xml +36 -0
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/spec/dummy/solr/conf/protwords.txt +21 -0
- data/spec/dummy/solr/conf/schema.xml +275 -0
- data/spec/dummy/solr/conf/scripts.conf +24 -0
- data/spec/dummy/solr/conf/solrconfig.xml +680 -0
- data/spec/dummy/solr/conf/spellings.txt +2 -0
- data/spec/dummy/solr/conf/stopwords.txt +58 -0
- data/spec/dummy/solr/conf/synonyms.txt +31 -0
- data/spec/dummy/solr/default/data/index/_1j.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_1j.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_1j.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_1j.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_1j.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_1j.si +0 -0
- data/spec/dummy/solr/default/data/index/_1j_2.del +0 -0
- data/spec/dummy/solr/default/data/index/_1j_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_1j_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_1j_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_1j_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_1l.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_1l.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_1l.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_1l.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_1l.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_1l.si +0 -0
- data/spec/dummy/solr/default/data/index/_1l_1.del +0 -0
- data/spec/dummy/solr/default/data/index/_1l_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_1l_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_1l_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_1l_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_29 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000068 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000070 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000072 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000073 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000074 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000075 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000076 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000077 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000078 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000079 +0 -0
- data/spec/dummy/solr/development/data/index/segments.gen +0 -0
- data/spec/dummy/solr/development/data/index/segments_1 +0 -0
- data/spec/dummy/solr/solr.xml +8 -0
- data/spec/dummy/solr/test/data/index/segments.gen +0 -0
- data/spec/dummy/solr/test/data/index/segments_1 +0 -0
- data/spec/fixtures/library_groups.yml +1 -1
- data/spec/models/import_request_spec.rb +1 -1
- data/spec/models/manifestation_spec.rb +1 -1
- data/spec/models/ndl_book_spec.rb +11 -1
- data/spec/models/question_spec.rb +1 -1
- data/spec/rails_helper.rb +61 -0
- data/spec/requests/ndl_books_spec.rb +1 -1
- data/spec/spec_helper.rb +83 -52
- metadata +415 -303
- data/spec/dummy/config/initializers/enju_leaf.rb +0 -1
- data/spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb +0 -5
@@ -0,0 +1,275 @@
|
|
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
|
+
<filter class="solr.PorterStemFilterFactory"/>
|
68
|
+
</analyzer>
|
69
|
+
</fieldType>
|
70
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
71
|
+
<fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
|
72
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
73
|
+
<fieldType name="date" class="solr.DateField" omitNorms="true"/>
|
74
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
75
|
+
<fieldType name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/>
|
76
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
77
|
+
<fieldType name="sfloat" class="solr.SortableFloatField" omitNorms="true"/>
|
78
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
79
|
+
<fieldType name="sint" class="solr.SortableIntField" omitNorms="true"/>
|
80
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
81
|
+
<fieldType name="slong" class="solr.SortableLongField" omitNorms="true"/>
|
82
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
83
|
+
<fieldType name="tint" class="solr.TrieIntField" omitNorms="true"/>
|
84
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
85
|
+
<fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
|
86
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
87
|
+
<fieldType name="tdate" class="solr.TrieDateField"
|
88
|
+
omitNorms="true"/>
|
89
|
+
|
90
|
+
<!-- Special field type for spell correction. Be careful about
|
91
|
+
adding filters here, as they apply *before* your values go in
|
92
|
+
the spellcheck. For example, the lowercase filter here means
|
93
|
+
all spelling suggestions will be lower case (without it,
|
94
|
+
though, you'd have duplicate suggestions for lower and proper
|
95
|
+
cased words). -->
|
96
|
+
<fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" omitNorms="true">
|
97
|
+
<analyzer>
|
98
|
+
<tokenizer class="solr.StandardTokenizerFactory"/>
|
99
|
+
<filter class="solr.StandardFilterFactory"/>
|
100
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
101
|
+
</analyzer>
|
102
|
+
</fieldType>
|
103
|
+
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
|
104
|
+
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
|
105
|
+
</types>
|
106
|
+
<fields>
|
107
|
+
<!-- Valid attributes for fields:
|
108
|
+
name: mandatory - the name for the field
|
109
|
+
type: mandatory - the name of a previously defined type from the
|
110
|
+
<types> section
|
111
|
+
indexed: true if this field should be indexed (searchable or sortable)
|
112
|
+
stored: true if this field should be retrievable
|
113
|
+
compressed: [false] if this field should be stored using gzip compression
|
114
|
+
(this will only apply if the field type is compressable; among
|
115
|
+
the standard field types, only TextField and StrField are)
|
116
|
+
multiValued: true if this field may contain multiple values per document
|
117
|
+
omitNorms: (expert) set to true to omit the norms associated with
|
118
|
+
this field (this disables length normalization and index-time
|
119
|
+
boosting for the field, and saves some memory). Only full-text
|
120
|
+
fields or fields that need an index-time boost need norms.
|
121
|
+
termVectors: [false] set to true to store the term vector for a
|
122
|
+
given field.
|
123
|
+
When using MoreLikeThis, fields used for similarity should be
|
124
|
+
stored for best performance.
|
125
|
+
termPositions: Store position information with the term vector.
|
126
|
+
This will increase storage costs.
|
127
|
+
termOffsets: Store offset information with the term vector. This
|
128
|
+
will increase storage costs.
|
129
|
+
default: a value that should be used if no value is specified
|
130
|
+
when adding a document.
|
131
|
+
-->
|
132
|
+
<!-- *** This field is used by Sunspot! *** -->
|
133
|
+
<field name="id" stored="true" type="string" multiValued="false" indexed="true"/>
|
134
|
+
<!-- *** This field is used by Sunspot! *** -->
|
135
|
+
<field name="type" stored="false" type="string" multiValued="true" indexed="true"/>
|
136
|
+
<!-- *** This field is used by Sunspot! *** -->
|
137
|
+
<field name="class_name" stored="false" type="string" multiValued="false" indexed="true"/>
|
138
|
+
<!-- *** This field is used by Sunspot! *** -->
|
139
|
+
<field name="text" stored="false" type="string" multiValued="true" indexed="true"/>
|
140
|
+
<!-- *** This field is used by Sunspot! *** -->
|
141
|
+
<field name="lat" stored="true" type="tdouble" multiValued="false" indexed="true"/>
|
142
|
+
<!-- *** This field is used by Sunspot! *** -->
|
143
|
+
<field name="lng" stored="true" type="tdouble" multiValued="false" indexed="true"/>
|
144
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
145
|
+
<dynamicField name="random_*" stored="false" type="rand" multiValued="false" indexed="true"/>
|
146
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
147
|
+
<dynamicField name="_local*" stored="false" type="tdouble" multiValued="false" indexed="true"/>
|
148
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
149
|
+
<dynamicField name="*_text" stored="false" type="text" multiValued="true" indexed="true"/>
|
150
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
151
|
+
<dynamicField name="*_texts" stored="true" type="text" multiValued="true" indexed="true"/>
|
152
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
153
|
+
<dynamicField name="*_b" stored="false" type="boolean" multiValued="false" indexed="true"/>
|
154
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
155
|
+
<dynamicField name="*_bm" stored="false" type="boolean" multiValued="true" indexed="true"/>
|
156
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
157
|
+
<dynamicField name="*_bs" stored="true" type="boolean" multiValued="false" indexed="true"/>
|
158
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
159
|
+
<dynamicField name="*_bms" stored="true" type="boolean" multiValued="true" indexed="true"/>
|
160
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
161
|
+
<dynamicField name="*_d" stored="false" type="date" multiValued="false" indexed="true"/>
|
162
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
163
|
+
<dynamicField name="*_dm" stored="false" type="date" multiValued="true" indexed="true"/>
|
164
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
165
|
+
<dynamicField name="*_ds" stored="true" type="date" multiValued="false" indexed="true"/>
|
166
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
167
|
+
<dynamicField name="*_dms" stored="true" type="date" multiValued="true" indexed="true"/>
|
168
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
169
|
+
<dynamicField name="*_e" stored="false" type="sdouble" multiValued="false" indexed="true"/>
|
170
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
171
|
+
<dynamicField name="*_em" stored="false" type="sdouble" multiValued="true" indexed="true"/>
|
172
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
173
|
+
<dynamicField name="*_es" stored="true" type="sdouble" multiValued="false" indexed="true"/>
|
174
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
175
|
+
<dynamicField name="*_ems" stored="true" type="sdouble" multiValued="true" indexed="true"/>
|
176
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
177
|
+
<dynamicField name="*_f" stored="false" type="sfloat" multiValued="false" indexed="true"/>
|
178
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
179
|
+
<dynamicField name="*_fm" stored="false" type="sfloat" multiValued="true" indexed="true"/>
|
180
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
181
|
+
<dynamicField name="*_fs" stored="true" type="sfloat" multiValued="false" indexed="true"/>
|
182
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
183
|
+
<dynamicField name="*_fms" stored="true" type="sfloat" multiValued="true" indexed="true"/>
|
184
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
185
|
+
<dynamicField name="*_i" stored="false" type="sint" multiValued="false" indexed="true"/>
|
186
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
187
|
+
<dynamicField name="*_im" stored="false" type="sint" multiValued="true" indexed="true"/>
|
188
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
189
|
+
<dynamicField name="*_is" stored="true" type="sint" multiValued="false" indexed="true"/>
|
190
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
191
|
+
<dynamicField name="*_ims" stored="true" type="sint" multiValued="true" indexed="true"/>
|
192
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
193
|
+
<dynamicField name="*_l" stored="false" type="slong" multiValued="false" indexed="true"/>
|
194
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
195
|
+
<dynamicField name="*_lm" stored="false" type="slong" multiValued="true" indexed="true"/>
|
196
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
197
|
+
<dynamicField name="*_ls" stored="true" type="slong" multiValued="false" indexed="true"/>
|
198
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
199
|
+
<dynamicField name="*_lms" stored="true" type="slong" multiValued="true" indexed="true"/>
|
200
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
201
|
+
<dynamicField name="*_s" stored="false" type="string" multiValued="false" indexed="true"/>
|
202
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
203
|
+
<dynamicField name="*_sm" stored="false" type="string" multiValued="true" indexed="true"/>
|
204
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
205
|
+
<dynamicField name="*_ss" stored="true" type="string" multiValued="false" indexed="true"/>
|
206
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
207
|
+
<dynamicField name="*_sms" stored="true" type="string" multiValued="true" indexed="true"/>
|
208
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
209
|
+
<dynamicField name="*_it" stored="false" type="tint" multiValued="false" indexed="true"/>
|
210
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
211
|
+
<dynamicField name="*_itm" stored="false" type="tint" multiValued="true" indexed="true"/>
|
212
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
213
|
+
<dynamicField name="*_its" stored="true" type="tint" multiValued="false" indexed="true"/>
|
214
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
215
|
+
<dynamicField name="*_itms" stored="true" type="tint" multiValued="true" indexed="true"/>
|
216
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
217
|
+
<dynamicField name="*_ft" stored="false" type="tfloat" multiValued="false" indexed="true"/>
|
218
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
219
|
+
<dynamicField name="*_ftm" stored="false" type="tfloat" multiValued="true" indexed="true"/>
|
220
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
221
|
+
<dynamicField name="*_fts" stored="true" type="tfloat" multiValued="false" indexed="true"/>
|
222
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
223
|
+
<dynamicField name="*_ftms" stored="true" type="tfloat" multiValued="true" indexed="true"/>
|
224
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
225
|
+
<dynamicField name="*_dt" stored="false" type="tdate" multiValued="false" indexed="true"/>
|
226
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
227
|
+
<dynamicField name="*_dtm" stored="false" type="tdate" multiValued="true" indexed="true"/>
|
228
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
229
|
+
<dynamicField name="*_dts" stored="true" type="tdate" multiValued="false" indexed="true"/>
|
230
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
231
|
+
<dynamicField name="*_dtms" stored="true" type="tdate" multiValued="true" indexed="true"/>
|
232
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
233
|
+
<dynamicField name="*_textv" stored="false" termVectors="true" type="text" multiValued="true" indexed="true"/>
|
234
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
235
|
+
<dynamicField name="*_textsv" stored="true" termVectors="true" type="text" multiValued="true" indexed="true"/>
|
236
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
237
|
+
<dynamicField name="*_et" stored="false" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
238
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
239
|
+
<dynamicField name="*_etm" stored="false" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
240
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
241
|
+
<dynamicField name="*_ets" stored="true" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
242
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
243
|
+
<dynamicField name="*_etms" stored="true" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
244
|
+
|
245
|
+
<!-- Type used to index the lat and lon components for the "location" FieldType -->
|
246
|
+
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" multiValued="false"/>
|
247
|
+
<dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
|
248
|
+
|
249
|
+
<dynamicField name="*_ll" stored="false" type="location" multiValued="false" indexed="true"/>
|
250
|
+
<dynamicField name="*_llm" stored="false" type="location" multiValued="true" indexed="true"/>
|
251
|
+
<dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
|
252
|
+
<dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
|
253
|
+
<field name="textSpell" stored="false" type="textSpell" multiValued="true" indexed="true"/>
|
254
|
+
<!-- required by Solr 4 -->
|
255
|
+
<field name="_version_" type="string" indexed="true" stored="true" multiValued="false" />
|
256
|
+
</fields>
|
257
|
+
|
258
|
+
<!-- Field to use to determine and enforce document uniqueness.
|
259
|
+
Unless this field is marked with required="false", it will be a required field
|
260
|
+
-->
|
261
|
+
<uniqueKey>id</uniqueKey>
|
262
|
+
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
263
|
+
<defaultSearchField>text</defaultSearchField>
|
264
|
+
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
265
|
+
<solrQueryParser defaultOperator="AND"/>
|
266
|
+
<!-- copyField commands copy one field to another at the time a document
|
267
|
+
is added to the index. It's used either to index the same field differently,
|
268
|
+
or to add multiple fields to the same field for easier/faster
|
269
|
+
searching. -->
|
270
|
+
|
271
|
+
<!-- Use copyField to copy the fields you want to run spell checking
|
272
|
+
on into one field. For example: -->
|
273
|
+
<copyField source="*_text" dest="textSpell" />
|
274
|
+
<copyField source="*_s" dest="textSpell" />
|
275
|
+
</schema>
|
@@ -0,0 +1,24 @@
|
|
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=
|