schema.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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. http://www.apache.org/licenses/LICENSE-2.0
  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. <!DOCTYPE schema [
  17. <!ENTITY extrafields SYSTEM "schema_extra_fields.xml">
  18. <!ENTITY extratypes SYSTEM "schema_extra_types.xml">
  19. ]>
  20. <!--
  21. This is the Solr schema file. This file should be named "schema.xml" and
  22. should be in the conf directory under the solr home
  23. (i.e. ./solr/conf/schema.xml by default)
  24. or located where the classloader for the Solr webapp can find it.
  25. This example schema is the recommended starting point for users.
  26. It should be kept correct and concise, usable out-of-the-box.
  27. For more information, on how to customize this file, please see
  28. http://wiki.apache.org/solr/SchemaXml
  29. PERFORMANCE NOTE: this schema includes many optional features and should not
  30. be used for benchmarking. To improve performance one could
  31. - set stored="false" for all fields possible (esp large fields) when you
  32. only need to search on the field but don't need to return the original
  33. value.
  34. - set indexed="false" if you don't need to search on the field, but only
  35. return the field as a result of searching on other indexed fields.
  36. - remove all unneeded copyField statements
  37. - for best index size and searching performance, set "index" to false
  38. for all general text fields, use copyField to copy them to the
  39. catchall "text" field, and use that for searching.
  40. - For maximum indexing performance, use the ConcurrentUpdateSolrServer
  41. java client.
  42. - Remember to run the JVM in server mode, and use a higher logging level
  43. that avoids logging every request
  44. -->
  45. <schema name="drupal-8.3.2-solr-7.x" version="1.6">
  46. <!-- attribute "name" is the name of this schema and is only used for display purposes.
  47. version="x.y" is Solr's version number for the schema syntax and
  48. semantics. It should not normally be changed by applications.
  49. 1.0: multiValued attribute did not exist, all fields are multiValued
  50. by nature
  51. 1.1: multiValued attribute introduced, false by default
  52. 1.2: omitTermFreqAndPositions attribute introduced, true by default
  53. except for text fields.
  54. 1.3: removed optional field compress feature
  55. 1.4: autoGeneratePhraseQueries attribute introduced to drive QueryParser
  56. behavior when a single string produces multiple tokens. Defaults
  57. to off for version >= 1.4
  58. 1.5: omitNorms defaults to true for primitive field types
  59. (int, float, boolean, string...)
  60. 1.6: useDocValuesAsStored defaults to true.
  61. -->
  62. <!-- Valid attributes for fields:
  63. name: mandatory - the name for the field
  64. type: mandatory - the name of a field type from the
  65. fieldTypes
  66. indexed: true if this field should be indexed (searchable or sortable)
  67. stored: true if this field should be retrievable
  68. docValues: true if this field should have doc values. Doc values are
  69. useful (required, if you are using *Point fields) for faceting,
  70. grouping, sorting and function queries. Doc values will make the index
  71. faster to load, more NRT-friendly and more memory-efficient.
  72. They however come with some limitations: they are currently only
  73. supported by StrField, UUIDField, all *PointFields, and depending
  74. on the field type, they might require the field to be single-valued,
  75. be required or have a default value (check the documentation
  76. of the field type you're interested in for more information)
  77. multiValued: true if this field may contain multiple values per document
  78. omitNorms: (expert) set to true to omit the norms associated with
  79. this field (this disables length normalization and index-time
  80. boosting for the field, and saves some memory). Only full-text
  81. fields or fields that need an index-time boost need norms.
  82. Norms are omitted for primitive (non-analyzed) types by default.
  83. termVectors: [false] set to true to store the term vector for a
  84. given field.
  85. When using MoreLikeThis, fields used for similarity should be
  86. stored for best performance.
  87. termPositions: Store position information with the term vector.
  88. This will increase storage costs.
  89. termOffsets: Store offset information with the term vector. This
  90. will increase storage costs.
  91. termPayloads: Store payload information with the term vector. This
  92. will increase storage costs.
  93. required: The field is required. It will throw an error if the
  94. value does not exist
  95. default: a value that should be used if no value is specified
  96. when adding a document.
  97. -->
  98. <!-- field names should consist of alphanumeric or underscore characters only and
  99. not start with a digit. This is not currently strictly enforced,
  100. but other field names will not have first class support from all components
  101. and back compatibility is not guaranteed. Names with both leading and
  102. trailing underscores (e.g. _version_) are reserved.
  103. -->
  104. <!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
  105. or Solr won't start. _version_ and update log are required for SolrCloud
  106. -->
  107. <!-- doc values are enabled by default for primitive types such as long so we don't index the version field -->
  108. <field name="_version_" type="plong" indexed="false" stored="false"/>
  109. <!-- points to the root document of a block of nested documents. Required for nested
  110. document support, may be removed otherwise
  111. -->
  112. <field name="_root_" type="string" indexed="true" stored="false" docValues="false"/>
  113. <!-- Only remove the "id" field if you have a very good reason to. While not strictly
  114. required, it is highly recommended. A <uniqueKey> is present in almost all Solr
  115. installations. See the <uniqueKey> declaration below where <uniqueKey> is set to "id".
  116. -->
  117. <!-- The document id is usually derived from a site-specific key (hash) and the
  118. entity type and ID like:
  119. Search Api 7.x:
  120. The format used is $document->id = $index_id . '-' . $item_id
  121. Search Api 8.x:
  122. The format used is $document->id = $site_hash . '-' . $index_id . '-' . $item_id
  123. Apache Solr Search Integration 7.x:
  124. The format used is $document->id = $site_hash . '/' . $entity_type . '/' . $entity->id;
  125. -->
  126. <!-- The Highlighter Component requires the id field to be "stored" even if docValues are set. -->
  127. <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" docValues="true"/>
  128. <!-- Search Api specific fields -->
  129. <!-- index_id is the machine name of the search index this entry belongs to. -->
  130. <field name="index_id" type="string" indexed="true" stored="false" multiValued="false" docValues="true"/>
  131. <!-- Here, default is used to create a "timestamp" field indicating
  132. when each document was indexed.-->
  133. <field name="timestamp" type="pdate" indexed="true" stored="false" default="NOW" multiValued="false" docValues="true"/>
  134. <field name="site" type="string" indexed="true" stored="false" multiValued="false" docValues="true"/>
  135. <field name="hash" type="string" indexed="true" stored="false" multiValued="false" docValues="true"/>
  136. <field name="boost_document" type="pfloat" indexed="true" stored="false" multiValued="false" docValues="true"/>
  137. <field name="boost_term" type="boost_term_payload" indexed="true" stored="false" multiValued="true"/>
  138. <!-- Dynamic field definitions. If a field name is not found, dynamicFields
  139. will be used if the name matches any of the patterns.
  140. RESTRICTION: the glob-like pattern in the name attribute must have
  141. a "*" only at the start or the end.
  142. EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)
  143. Longer patterns will be matched first. if equal size patterns
  144. both match, the first appearing in the schema will be used. -->
  145. <!-- For 2 and 3 letter prefix dynamic fields, the 1st letter indicates the data type and
  146. the last letter is 's' for single valued, 'm' for multi-valued -->
  147. <!-- We use plong for integer since 64 bit ints are now common in PHP. -->
  148. <dynamicField name="is_*" type="plong" indexed="true" stored="false" multiValued="false" docValues="true"/>
  149. <dynamicField name="im_*" type="plong" indexed="true" stored="false" multiValued="true" docValues="true"/>
  150. <!-- List of floats can be saved in a regular float field -->
  151. <dynamicField name="fs_*" type="pfloat" indexed="true" stored="false" multiValued="false" docValues="true"/>
  152. <dynamicField name="fm_*" type="pfloat" indexed="true" stored="false" multiValued="true" docValues="true"/>
  153. <!-- List of doubles can be saved in a regular double field -->
  154. <dynamicField name="ps_*" type="pdouble" indexed="true" stored="false" multiValued="false" docValues="true"/>
  155. <dynamicField name="pm_*" type="pdouble" indexed="true" stored="false" multiValued="true" docValues="true"/>
  156. <!-- List of booleans can be saved in a regular boolean field -->
  157. <dynamicField name="bm_*" type="boolean" indexed="true" stored="false" multiValued="true" docValues="true"/>
  158. <dynamicField name="bs_*" type="boolean" indexed="true" stored="false" multiValued="false" docValues="true"/>
  159. <!-- Regular text (without processing) can be stored in a string field-->
  160. <dynamicField name="ss_*" type="string" indexed="true" stored="false" multiValued="false" docValues="true"/>
  161. <!-- For field types using SORTED_SET, multiple identical entries are collapsed into a single value.
  162. Thus if I insert values 4, 5, 2, 4, 1, my return will be 1, 2, 4, 5 when enabling docValues.
  163. If you need to preserve the order and duplicate entries, consider to store the values as zm_* (twice). -->
  164. <dynamicField name="sm_*" type="string" indexed="true" stored="false" multiValued="true" docValues="true"/>
  165. <!-- Special-purpose text fields -->
  166. <dynamicField name="tws_*" type="text_ws" indexed="true" stored="true" multiValued="false"/>
  167. <dynamicField name="twm_*" type="text_ws" indexed="true" stored="true" multiValued="true"/>
  168. <!-- Trie fields are deprecated. Point fields solve all needs. But we keep the dedicated field names for backward compatibility. -->
  169. <dynamicField name="ds_*" type="pdate" indexed="true" stored="false" multiValued="false" docValues="true"/>
  170. <dynamicField name="dm_*" type="pdate" indexed="true" stored="false" multiValued="true" docValues="true"/>
  171. <!-- This field is used to store date ranges -->
  172. <dynamicField name="drs_*" type="date_range" indexed="true" stored="true" multiValued="false"/>
  173. <dynamicField name="drm_*" type="date_range" indexed="true" stored="true" multiValued="true"/>
  174. <dynamicField name="its_*" type="plong" indexed="true" stored="false" multiValued="false" docValues="true"/>
  175. <dynamicField name="itm_*" type="plong" indexed="true" stored="false" multiValued="true" docValues="true"/>
  176. <dynamicField name="fts_*" type="pfloat" indexed="true" stored="false" multiValued="false" docValues="true"/>
  177. <dynamicField name="ftm_*" type="pfloat" indexed="true" stored="false" multiValued="true" docValues="true"/>
  178. <dynamicField name="pts_*" type="pdouble" indexed="true" stored="false" multiValued="false" docValues="true"/>
  179. <dynamicField name="ptm_*" type="pdouble" indexed="true" stored="false" multiValued="true" docValues="true"/>
  180. <!-- Binary fields can be populated using base64 encoded data. Useful e.g. for embedding
  181. a small image in a search result using the data URI scheme -->
  182. <dynamicField name="xs_*" type="binary" indexed="false" stored="true" multiValued="false"/>
  183. <dynamicField name="xm_*" type="binary" indexed="false" stored="true" multiValued="true"/>
  184. <!-- Trie fields are deprecated. Point fields solve all needs. But we keep the dedicated field names for backward compatibility. -->
  185. <dynamicField name="dds_*" type="pdate" indexed="true" stored="false" multiValued="false" docValues="true"/>
  186. <dynamicField name="ddm_*" type="pdate" indexed="true" stored="false" multiValued="true" docValues="true"/>
  187. <!-- In case a 32 bit int is really needed, we provide these fields. 'h' is mnemonic for 'half word', i.e. 32 bit on 64 arch -->
  188. <dynamicField name="hs_*" type="pint" indexed="true" stored="false" multiValued="false" docValues="true"/>
  189. <dynamicField name="hm_*" type="pint" indexed="true" stored="false" multiValued="true" docValues="true"/>
  190. <!-- Trie fields are deprecated. Point fields solve all needs. But we keep the dedicated field names for backward compatibility. -->
  191. <dynamicField name="hts_*" type="pint" indexed="true" stored="false" multiValued="false" docValues="true"/>
  192. <dynamicField name="htm_*" type="pint" indexed="true" stored="false" multiValued="true" docValues="true"/>
  193. <!-- Unindexed string fields that can be used to store values that won't be searchable -->
  194. <dynamicField name="zs_*" type="string" indexed="false" stored="true" multiValued="false"/>
  195. <dynamicField name="zm_*" type="string" indexed="false" stored="true" multiValued="true"/>
  196. <!-- Fields for location searches.
  197. http://wiki.apache.org/solr/SpatialSearch#geodist_-_The_distance_function -->
  198. <dynamicField name="points_*" type="point" indexed="true" stored="true" multiValued="false"/>
  199. <dynamicField name="pointm_*" type="point" indexed="true" stored="true" multiValued="true"/>
  200. <dynamicField name="locs_*" type="location" indexed="true" stored="true" multiValued="false"/>
  201. <dynamicField name="locm_*" type="location" indexed="true" stored="true" multiValued="true"/>
  202. <!-- GeoHash fields are deprecated. LatLonPointSpatial fields solve all needs. But we keep the dedicated field names for backward compatibility. -->
  203. <dynamicField name="geos_*" type="location" indexed="true" stored="true" multiValued="false"/>
  204. <dynamicField name="geom_*" type="location" indexed="true" stored="true" multiValued="true"/>
  205. <dynamicField name="bboxs_*" type="bbox" indexed="true" stored="true" multiValued="false" />
  206. <dynamicField name="bboxm_*" type="bbox" indexed="true" stored="true" multiValued="true" />
  207. <dynamicField name="rpts_*" type="location_rpt" indexed="true" stored="true" multiValued="false" />
  208. <dynamicField name="rptm_*" type="location_rpt" indexed="true" stored="true" multiValued="true" />
  209. <!-- External file fields -->
  210. <dynamicField name="eff_*" type="file"/>
  211. <!-- A random sort field -->
  212. <dynamicField name="random_*" type="random" indexed="true" stored="true"/>
  213. <!-- This field is used to store access information (e.g. node access grants), as opposed to field data -->
  214. <dynamicField name="access_*" type="pint" indexed="true" stored="false" multiValued="true" docValues="true"/>
  215. <!-- The following causes solr to ignore any fields that don't already match an existing
  216. field name or dynamic field, rather than reporting them as an error.
  217. Alternately, change the type="ignored" to some other type e.g. "text" if you want
  218. unknown fields indexed and/or stored by default -->
  219. <dynamicField name="*" type="ignored" multiValued="true" />
  220. <!-- field type definitions. The "name" attribute is
  221. just a label to be used by field definitions. The "class"
  222. attribute and any other attributes determine the real
  223. behavior of the fieldType.
  224. Class names starting with "solr" refer to java classes in a
  225. standard package such as org.apache.solr.analysis
  226. -->
  227. <!-- The StrField type is not analyzed, but indexed/stored verbatim.
  228. It supports doc values but in that case the field needs to be
  229. single-valued and either required or have a default value.
  230. -->
  231. <fieldType name="string" class="solr.StrField"/>
  232. <!-- boolean type: "true" or "false" -->
  233. <fieldType name="boolean" class="solr.BoolField"/>
  234. <!-- sortMissingLast and sortMissingFirst attributes are optional attributes are
  235. currently supported on types that are sorted internally as strings
  236. and on numeric types.
  237. This includes "string", "boolean", "pint", "pfloat", "plong", "pdate", "pdouble".
  238. - If sortMissingLast="true", then a sort on this field will cause documents
  239. without the field to come after documents with the field,
  240. regardless of the requested sort order (asc or desc).
  241. - If sortMissingFirst="true", then a sort on this field will cause documents
  242. without the field to come before documents with the field,
  243. regardless of the requested sort order.
  244. - If sortMissingLast="false" and sortMissingFirst="false" (the default),
  245. then default lucene sorting will be used which places docs without the
  246. field first in an ascending sort and last in a descending sort.
  247. -->
  248. <!--
  249. Numeric field types that index values using KD-trees.
  250. Point fields don't support FieldCache, so they must have docValues="true" if needed for sorting, faceting, functions, etc.
  251. -->
  252. <fieldType name="pint" class="solr.IntPointField" docValues="true"/>
  253. <fieldType name="pfloat" class="solr.FloatPointField" docValues="true"/>
  254. <fieldType name="plong" class="solr.LongPointField" docValues="true"/>
  255. <fieldType name="pdouble" class="solr.DoublePointField" docValues="true"/>
  256. <fieldType name="pints" class="solr.IntPointField" docValues="true" multiValued="true"/>
  257. <fieldType name="pfloats" class="solr.FloatPointField" docValues="true" multiValued="true"/>
  258. <fieldType name="plongs" class="solr.LongPointField" docValues="true" multiValued="true"/>
  259. <fieldType name="pdoubles" class="solr.DoublePointField" docValues="true" multiValued="true"/>
  260. <!--
  261. The ExternalFileField type gets values from an external file instead of the
  262. index. This is useful for data such as rankings that might change frequently
  263. and require different update frequencies than the documents they are
  264. associated with.
  265. -->
  266. <fieldType name="file" keyField="id" defVal="1" stored="false" indexed="false" class="solr.ExternalFileField"/>
  267. <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
  268. is a more restricted form of the canonical representation of dateTime
  269. http://www.w3.org/TR/xmlschema-2/#dateTime
  270. The trailing "Z" designates UTC time and is mandatory.
  271. Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
  272. All other components are mandatory.
  273. Expressions can also be used to denote calculations that should be
  274. performed relative to "NOW" to determine the value, ie...
  275. NOW/HOUR
  276. ... Round to the start of the current hour
  277. NOW-1DAY
  278. ... Exactly 1 day prior to now
  279. NOW/DAY+6MONTHS+3DAYS
  280. ... 6 months and 3 days in the future from the start of
  281. the current day
  282. Consult the DatePointField javadocs for more information.
  283. -->
  284. <!-- KD-tree versions of date fields -->
  285. <fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
  286. <fieldType name="pdates" class="solr.DatePointField" docValues="true" multiValued="true"/>
  287. <!-- A date range field -->
  288. <fieldType name="date_range" class="solr.DateRangeField"/>
  289. <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
  290. <fieldType name="binary" class="solr.BinaryField"/>
  291. <!-- The "RandomSortField" is not used to store or search any
  292. data. You can declare fields of this type it in your schema
  293. to generate pseudo-random orderings of your docs for sorting
  294. or function purposes. The ordering is generated based on the field
  295. name and the version of the index. As long as the index version
  296. remains unchanged, and the same field name is reused,
  297. the ordering of the docs will be consistent.
  298. If you want different psuedo-random orderings of documents,
  299. for the same version of the index, use a dynamicField and
  300. change the field name in the request.
  301. -->
  302. <fieldType name="random" class="solr.RandomSortField" indexed="true" />
  303. <!-- solr.TextField allows the specification of custom text analyzers
  304. specified as a tokenizer and a list of token filters. Different
  305. analyzers may be specified for indexing and querying.
  306. The optional positionIncrementGap puts space between multiple fields of
  307. this type on the same document, with the purpose of preventing false phrase
  308. matching across fields.
  309. For more info on customizing your analyzer chain, please see
  310. http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
  311. -->
  312. <!-- One can also specify an existing Analyzer class that has a
  313. default constructor via the class attribute on the analyzer element.
  314. Example:
  315. <fieldType name="text_greek" class="solr.TextField">
  316. <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>
  317. </fieldType>
  318. -->
  319. <!-- A text field that only splits on whitespace for exact matching of words -->
  320. <fieldType name="text_ws" class="solr.TextField" omitNorms="true" positionIncrementGap="100">
  321. <analyzer>
  322. <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  323. <filter class="solr.LowerCaseFilterFactory"/>
  324. </analyzer>
  325. </fieldType>
  326. <fieldType name="boost_term_payload" stored="false" indexed="true" class="solr.TextField" >
  327. <analyzer>
  328. <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  329. <filter class="solr.LowerCaseFilterFactory"/>
  330. <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  331. <!--
  332. The DelimitedPayloadTokenFilter can put payloads on tokens... for example,
  333. a token of "foo|1.4" would be indexed as "foo" with a payload of 1.4f
  334. Attributes of the DelimitedPayloadTokenFilterFactory :
  335. "delimiter" - a one character delimiter. Default is | (pipe)
  336. "encoder" - how to encode the following value into a playload
  337. float -> org.apache.lucene.analysis.payloads.FloatEncoder,
  338. integer -> o.a.l.a.p.IntegerEncoder
  339. identity -> o.a.l.a.p.IdentityEncoder
  340. Fully Qualified class name implementing PayloadEncoder, Encoder must have a no arg constructor.
  341. -->
  342. <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
  343. <filter class="solr.LengthFilterFactory" min="2" max="100"/>
  344. </analyzer>
  345. </fieldType>
  346. <!-- since fields of this type are by default not stored or indexed,
  347. any data added to them will be ignored outright. -->
  348. <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
  349. <!-- This point type indexes the coordinates as separate fields (subFields)
  350. If subFieldType is defined, it references a type, and a dynamic field
  351. definition is created matching *___<typename>. Alternately, if
  352. subFieldSuffix is defined, that is used to create the subFields.
  353. Example: if subFieldType="double", then the coordinates would be
  354. indexed in fields myloc_0___double,myloc_1___double.
  355. Example: if subFieldSuffix="_d" then the coordinates would be indexed
  356. in fields myloc_0_d,myloc_1_d
  357. The subFields are an implementation detail of the fieldType, and end
  358. users normally should not need to know about them.
  359. -->
  360. <!-- In Drupal we only use prefixes for dynmaic fields. Tht might change in
  361. the future but for now we keep this pattern.
  362. -->
  363. <fieldType name="point" class="solr.PointType" dimension="2" subFieldType="pdouble"/>
  364. <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
  365. <fieldType name="location" class="solr.LatLonPointSpatialField" docValues="true"/>
  366. <!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
  367. For more information about this and other Spatial fields new to Solr 4, see:
  368. http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
  369. -->
  370. <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
  371. geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers" />
  372. <!-- Spatial rectangle (bounding box) field. It supports most spatial predicates, and has
  373. special relevancy modes: score=overlapRatio|area|area2D (local-param to the query). DocValues is recommended for
  374. relevancy. -->
  375. <fieldType name="bbox" class="solr.BBoxField"
  376. geo="true" distanceUnits="kilometers" numberType="_bbox_coord" />
  377. <fieldType name="_bbox_coord" class="solr.DoublePointField" docValues="true" stored="false"/>
  378. <!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType
  379. Parameters:
  380. amountLongSuffix: Required. Refers to a dynamic field for the raw amount sub-field.
  381. The dynamic field must have a field type that extends LongValueFieldType.
  382. Note: If you expect to use Atomic Updates, this dynamic field may not be stored.
  383. codeStrSuffix: Required. Refers to a dynamic field for the currency code sub-field.
  384. The dynamic field must have a field type that extends StrField.
  385. Note: If you expect to use Atomic Updates, this dynamic field may not be stored.
  386. defaultCurrency: Specifies the default currency if none specified. Defaults to "USD"
  387. providerClass: Lets you plug in other exchange provider backend:
  388. solr.FileExchangeRateProvider is the default and takes one parameter:
  389. currencyConfig: name of an xml file holding exchange rates
  390. solr.OpenExchangeRatesOrgProvider uses rates from openexchangerates.org:
  391. ratesFileLocation: URL or path to rates JSON file (default latest.json on the web)
  392. refreshInterval: Number of minutes between each rates fetch (default: 1440, min: 60)
  393. -->
  394. <!-- <fieldType name="currency" class="solr.CurrencyFieldType" amountLongSuffix="_l_ns" codeStrSuffix="_s_ns"
  395. defaultCurrency="USD" currencyConfig="currency.xml" /> -->
  396. <!-- Following is a dynamic way to include other fields, added by other contrib modules -->
  397. &extrafields;
  398. <!-- Following is a dynamic way to include other types, added by other contrib modules -->
  399. &extratypes;
  400. <!-- Field to use to determine and enforce document uniqueness.
  401. Unless this field is marked with required="false", it will be a required field
  402. -->
  403. <uniqueKey>id</uniqueKey>
  404. <!-- Similarity is the scoring routine for each document vs. a query.
  405. A custom Similarity or SimilarityFactory may be specified here, but
  406. the default is fine for most applications.
  407. For more info: http://wiki.apache.org/solr/SchemaXml#Similarity
  408. -->
  409. <!--
  410. <similarity class="com.example.solr.CustomSimilarityFactory">
  411. <str name="paramkey">param value</str>
  412. </similarity>
  413. -->
  414. </schema>