tanning_bed_solr 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/.bnsignore +18 -0
  2. data/.gitignore +9 -0
  3. data/History.txt +4 -0
  4. data/README.txt +45 -0
  5. data/Rakefile +18 -0
  6. data/lib/tanning_bed_solr.rb +65 -0
  7. data/vendor/solr/README.txt +42 -0
  8. data/vendor/solr/etc/jetty.xml +212 -0
  9. data/vendor/solr/etc/webdefault.xml +379 -0
  10. data/vendor/solr/example-DIH/README.txt +43 -0
  11. data/vendor/solr/example-DIH/hsqldb/ex.backup +0 -0
  12. data/vendor/solr/example-DIH/hsqldb/ex.data +0 -0
  13. data/vendor/solr/example-DIH/hsqldb/ex.log +2 -0
  14. data/vendor/solr/example-DIH/hsqldb/ex.properties +17 -0
  15. data/vendor/solr/example-DIH/hsqldb/ex.script +12 -0
  16. data/vendor/solr/example-DIH/solr/db/conf/admin-extra.html +31 -0
  17. data/vendor/solr/example-DIH/solr/db/conf/db-data-config.xml +31 -0
  18. data/vendor/solr/example-DIH/solr/db/conf/elevate.xml +36 -0
  19. data/vendor/solr/example-DIH/solr/db/conf/protwords.txt +21 -0
  20. data/vendor/solr/example-DIH/solr/db/conf/schema.xml +356 -0
  21. data/vendor/solr/example-DIH/solr/db/conf/scripts.conf +24 -0
  22. data/vendor/solr/example-DIH/solr/db/conf/solrconfig.xml +705 -0
  23. data/vendor/solr/example-DIH/solr/db/conf/stopwords.txt +58 -0
  24. data/vendor/solr/example-DIH/solr/db/conf/synonyms.txt +31 -0
  25. data/vendor/solr/example-DIH/solr/db/conf/xslt/example.xsl +132 -0
  26. data/vendor/solr/example-DIH/solr/db/conf/xslt/example_atom.xsl +63 -0
  27. data/vendor/solr/example-DIH/solr/db/conf/xslt/example_rss.xsl +62 -0
  28. data/vendor/solr/example-DIH/solr/db/conf/xslt/luke.xsl +345 -0
  29. data/vendor/solr/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar +0 -0
  30. data/vendor/solr/example-DIH/solr/mail/conf/data-config.xml +11 -0
  31. data/vendor/solr/example-DIH/solr/mail/conf/protwords.txt +21 -0
  32. data/vendor/solr/example-DIH/solr/mail/conf/schema.xml +370 -0
  33. data/vendor/solr/example-DIH/solr/mail/conf/solrconfig.xml +807 -0
  34. data/vendor/solr/example-DIH/solr/mail/conf/stopwords.txt +58 -0
  35. data/vendor/solr/example-DIH/solr/mail/conf/synonyms.txt +31 -0
  36. data/vendor/solr/example-DIH/solr/rss/conf/admin-extra.html +31 -0
  37. data/vendor/solr/example-DIH/solr/rss/conf/elevate.xml +36 -0
  38. data/vendor/solr/example-DIH/solr/rss/conf/protwords.txt +21 -0
  39. data/vendor/solr/example-DIH/solr/rss/conf/rss-data-config.xml +26 -0
  40. data/vendor/solr/example-DIH/solr/rss/conf/schema.xml +316 -0
  41. data/vendor/solr/example-DIH/solr/rss/conf/scripts.conf +24 -0
  42. data/vendor/solr/example-DIH/solr/rss/conf/solrconfig.xml +704 -0
  43. data/vendor/solr/example-DIH/solr/rss/conf/stopwords.txt +58 -0
  44. data/vendor/solr/example-DIH/solr/rss/conf/synonyms.txt +31 -0
  45. data/vendor/solr/example-DIH/solr/solr.xml +8 -0
  46. data/vendor/solr/exampledocs/books.csv +11 -0
  47. data/vendor/solr/exampledocs/hd.xml +48 -0
  48. data/vendor/solr/exampledocs/ipod_other.xml +52 -0
  49. data/vendor/solr/exampledocs/ipod_video.xml +36 -0
  50. data/vendor/solr/exampledocs/mem.xml +60 -0
  51. data/vendor/solr/exampledocs/monitor.xml +31 -0
  52. data/vendor/solr/exampledocs/monitor2.xml +30 -0
  53. data/vendor/solr/exampledocs/mp500.xml +39 -0
  54. data/vendor/solr/exampledocs/payload.xml +57 -0
  55. data/vendor/solr/exampledocs/post.jar +0 -0
  56. data/vendor/solr/exampledocs/post.sh +28 -0
  57. data/vendor/solr/exampledocs/sd500.xml +34 -0
  58. data/vendor/solr/exampledocs/solr.xml +38 -0
  59. data/vendor/solr/exampledocs/test_utf8.sh +83 -0
  60. data/vendor/solr/exampledocs/utf8-example.xml +42 -0
  61. data/vendor/solr/exampledocs/vidcard.xml +54 -0
  62. data/vendor/solr/lib/jetty-6.1.3.jar +0 -0
  63. data/vendor/solr/lib/jetty-util-6.1.3.jar +0 -0
  64. data/vendor/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
  65. data/vendor/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  66. data/vendor/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
  67. data/vendor/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
  68. data/vendor/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
  69. data/vendor/solr/logs/.keep +0 -0
  70. data/vendor/solr/multicore/README.txt +3 -0
  71. data/vendor/solr/multicore/core0/conf/schema.xml +41 -0
  72. data/vendor/solr/multicore/core0/conf/solrconfig.xml +40 -0
  73. data/vendor/solr/multicore/core1/conf/schema.xml +41 -0
  74. data/vendor/solr/multicore/core1/conf/solrconfig.xml +40 -0
  75. data/vendor/solr/multicore/exampledocs/ipod_other.xml +34 -0
  76. data/vendor/solr/multicore/exampledocs/ipod_video.xml +22 -0
  77. data/vendor/solr/multicore/solr.xml +35 -0
  78. data/vendor/solr/solr/README.txt +54 -0
  79. data/vendor/solr/solr/conf/admin-extra.html +31 -0
  80. data/vendor/solr/solr/conf/elevate.xml +36 -0
  81. data/vendor/solr/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  82. data/vendor/solr/solr/conf/protwords.txt +21 -0
  83. data/vendor/solr/solr/conf/schema.xml +126 -0
  84. data/vendor/solr/solr/conf/scripts.conf +24 -0
  85. data/vendor/solr/solr/conf/solrconfig.xml +458 -0
  86. data/vendor/solr/solr/conf/spellings.txt +2 -0
  87. data/vendor/solr/solr/conf/stopwords.txt +58 -0
  88. data/vendor/solr/solr/conf/synonyms.txt +31 -0
  89. data/vendor/solr/solr/conf/xslt/example.xsl +132 -0
  90. data/vendor/solr/solr/conf/xslt/example_atom.xsl +67 -0
  91. data/vendor/solr/solr/conf/xslt/example_rss.xsl +66 -0
  92. data/vendor/solr/solr/conf/xslt/luke.xsl +337 -0
  93. data/vendor/solr/start.jar +0 -0
  94. data/vendor/solr/webapps/solr.war +0 -0
  95. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/jsp/org/apache/jsp/admin/index_jsp.class +0 -0
  96. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/jsp/org/apache/jsp/index_jsp.class +0 -0
  97. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/META-INF/LICENSE.txt +1086 -0
  98. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/META-INF/NOTICE.txt +254 -0
  99. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-core-1.4.0.jar +0 -0
  100. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-dataimporthandler-1.4.0.jar +0 -0
  101. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-solrj-1.4.0.jar +0 -0
  102. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-codec-1.3.jar +0 -0
  103. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-csv-1.0-SNAPSHOT-r609327.jar +0 -0
  104. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-fileupload-1.2.1.jar +0 -0
  105. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-httpclient-3.1.jar +0 -0
  106. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-io-1.4.jar +0 -0
  107. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/geronimo-stax-api_1.0_spec-1.0.1.jar +0 -0
  108. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/jcl-over-slf4j-1.5.5.jar +0 -0
  109. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-analyzers-2.9.1.jar +0 -0
  110. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-core-2.9.1.jar +0 -0
  111. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-highlighter-2.9.1.jar +0 -0
  112. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-memory-2.9.1.jar +0 -0
  113. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-misc-2.9.1.jar +0 -0
  114. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-queries-2.9.1.jar +0 -0
  115. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-snowball-2.9.1.jar +0 -0
  116. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-spellchecker-2.9.1.jar +0 -0
  117. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/slf4j-api-1.5.5.jar +0 -0
  118. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/slf4j-jdk14-1.5.5.jar +0 -0
  119. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/wstx-asl-3.2.7.jar +0 -0
  120. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/web.xml +148 -0
  121. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/weblogic.xml +12 -0
  122. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/_info.jsp +118 -0
  123. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/action.jsp +94 -0
  124. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/analysis.jsp +498 -0
  125. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/analysis.xsl +179 -0
  126. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/dataimport.jsp +54 -0
  127. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/debug.jsp +106 -0
  128. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/distributiondump.jsp +160 -0
  129. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/favicon.ico +0 -0
  130. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/form.jsp +137 -0
  131. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/get-file.jsp +72 -0
  132. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/get-properties.jsp +24 -0
  133. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/header.jsp +41 -0
  134. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/index.jsp +156 -0
  135. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/jquery-1.2.3.min.js +32 -0
  136. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/meta.xsl +34 -0
  137. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/ping.jsp +52 -0
  138. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/ping.xsl +71 -0
  139. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/raw-schema.jsp +38 -0
  140. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/registry.jsp +107 -0
  141. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/registry.xsl +321 -0
  142. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/header.jsp +89 -0
  143. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/index.jsp +378 -0
  144. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/schema.jsp +657 -0
  145. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/solr-admin.css +215 -0
  146. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/solr_small.png +0 -0
  147. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/stats.jsp +92 -0
  148. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/stats.xsl +220 -0
  149. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/tabular.xsl +141 -0
  150. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/threaddump.jsp +110 -0
  151. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/threaddump.xsl +103 -0
  152. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/favicon.ico +0 -0
  153. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/index.jsp +42 -0
  154. data/version.txt +1 -0
  155. metadata +251 -0
@@ -0,0 +1,11 @@
1
+ <dataConfig>
2
+ <document>
3
+ <!--
4
+ Note - In order to index attachments, set processAttachement="true" and drop
5
+ Tika and its dependencies to example-DIH/solr/mail/lib directory
6
+ -->
7
+ <entity processor="MailEntityProcessor" user="email@gmail.com"
8
+ password="password" host="imap.gmail.com" protocol="imaps"
9
+ fetchMailsSince="2009-09-20 00:00:00" batchSize="20" folders="inbox" processAttachement="false"/>
10
+ </document>
11
+ </dataConfig>
@@ -0,0 +1,21 @@
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
+ #-----------------------------------------------------------------------
14
+ # Use a protected word file to protect against the stemmer reducing two
15
+ # unrelated words to the same base word.
16
+
17
+ # Some non-words that normally won't be encountered,
18
+ # just to test that they won't be stemmed.
19
+ dontstems
20
+ zwhacky
21
+
@@ -0,0 +1,370 @@
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
+ <!--
20
+ This is the Solr schema file. This file should be named "schema.xml" and
21
+ should be in the conf directory under the solr home
22
+ (i.e. ./solr/conf/schema.xml by default)
23
+ or located where the classloader for the Solr webapp can find it.
24
+
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
+
28
+ For more information, on how to customize this file, please see
29
+ http://wiki.apache.org/solr/SchemaXml
30
+
31
+ NOTE: this schema includes many optional features and should not
32
+ be used for benchmarking.
33
+ -->
34
+
35
+ <schema name="example" version="1.2">
36
+ <!-- attribute "name" is the name of this schema and is only used for display purposes.
37
+ Applications should change this to reflect the nature of the search collection.
38
+ version="1.2" is Solr's version number for the schema syntax and semantics. It should
39
+ not normally be changed by applications.
40
+ 1.0: multiValued attribute did not exist, all fields are multiValued by nature
41
+ 1.1: multiValued attribute introduced, false by default
42
+ 1.2: omitTf attribute introduced, true by default -->
43
+
44
+ <types>
45
+ <!-- field type definitions. The "name" attribute is
46
+ just a label to be used by field definitions. The "class"
47
+ attribute and any other attributes determine the real
48
+ behavior of the fieldType.
49
+ Class names starting with "solr" refer to java classes in the
50
+ org.apache.solr.analysis package.
51
+ -->
52
+
53
+ <!-- The StrField type is not analyzed, but indexed/stored verbatim.
54
+ - StrField and TextField support an optional compressThreshold which
55
+ limits compression (if enabled in the derived fields) to values which
56
+ exceed a certain size (in characters).
57
+ -->
58
+ <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
59
+
60
+ <!-- boolean type: "true" or "false" -->
61
+ <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>
62
+
63
+ <!-- The optional sortMissingLast and sortMissingFirst attributes are
64
+ currently supported on types that are sorted internally as strings.
65
+ - If sortMissingLast="true", then a sort on this field will cause documents
66
+ without the field to come after documents with the field,
67
+ regardless of the requested sort order (asc or desc).
68
+ - If sortMissingFirst="true", then a sort on this field will cause documents
69
+ without the field to come before documents with the field,
70
+ regardless of the requested sort order.
71
+ - If sortMissingLast="false" and sortMissingFirst="false" (the default),
72
+ then default lucene sorting will be used which places docs without the
73
+ field first in an ascending sort and last in a descending sort.
74
+ -->
75
+
76
+
77
+ <!-- numeric field types that store and index the text
78
+ value verbatim (and hence don't support range queries, since the
79
+ lexicographic ordering isn't equal to the numeric ordering) -->
80
+ <fieldType name="integer" class="solr.IntField" omitNorms="true"/>
81
+ <fieldType name="long" class="solr.LongField" omitNorms="true"/>
82
+ <fieldType name="float" class="solr.FloatField" omitNorms="true"/>
83
+ <fieldType name="double" class="solr.DoubleField" omitNorms="true"/>
84
+
85
+
86
+ <!-- Numeric field types that manipulate the value into
87
+ a string value that isn't human-readable in its internal form,
88
+ but with a lexicographic ordering the same as the numeric ordering,
89
+ so that range queries work correctly. -->
90
+ <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
91
+ <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>
92
+ <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/>
93
+ <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>
94
+
95
+
96
+ <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
97
+ is a more restricted form of the canonical representation of dateTime
98
+ http://www.w3.org/TR/xmlschema-2/#dateTime
99
+ The trailing "Z" designates UTC time and is mandatory.
100
+ Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
101
+ All other components are mandatory.
102
+
103
+ Expressions can also be used to denote calculations that should be
104
+ performed relative to "NOW" to determine the value, ie...
105
+
106
+ NOW/HOUR
107
+ ... Round to the start of the current hour
108
+ NOW-1DAY
109
+ ... Exactly 1 day prior to now
110
+ NOW/DAY+6MONTHS+3DAYS
111
+ ... 6 months and 3 days in the future from the start of
112
+ the current day
113
+
114
+ Consult the DateField javadocs for more information.
115
+ -->
116
+ <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true"/>
117
+
118
+ <!--
119
+ Numeric field types that manipulate the value into trie encoded strings which are not
120
+ human readable in the internal form. Range searches on such fields use the fast Trie Range Queries
121
+ which are much faster than range searches on the SortableNumberField types.
122
+
123
+ For the fast range search to work, trie fields must be indexed. Trie fields are <b>not</b> sortable
124
+ in numerical order. Also, they cannot be used in function queries. If one needs sorting as well as
125
+ fast range search, one should create a copy field specifically for sorting. Same workaround is
126
+ suggested for using trie fields in function queries as well.
127
+
128
+ For each number being added to this field, multiple terms are generated as per the algorithm described in
129
+ org.apache.lucene.search.trie package description. The possible number of terms depend on the precisionStep
130
+ attribute and increase dramatically with higher precision steps (factor 2**precisionStep). The default
131
+ value of precisionStep is 8.
132
+
133
+ Note that if you use a precisionStep of 32 for int/float and 64 for long/double, then multiple terms
134
+ will not be generated, range search will be no faster than any other number field,
135
+ but sorting will be possible.
136
+ -->
137
+ <fieldType name="tint" class="solr.TrieField" type="integer" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
138
+ <fieldType name="tfloat" class="solr.TrieField" type="float" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
139
+ <fieldType name="tlong" class="solr.TrieField" type="long" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
140
+ <fieldType name="tdouble" class="solr.TrieField" type="double" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
141
+
142
+ <fieldType name="tdouble4" class="solr.TrieField" type="double" precisionStep="4" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
143
+
144
+ <!--
145
+ This date field manipulates the value into a trie encoded strings for fast range searches. They follow the
146
+ same format and semantics as the normal DateField and support the date math syntax except that they are
147
+ not sortable and cannot be used in function queries.
148
+ -->
149
+ <fieldType name="tdate" class="solr.TrieField" type="date" omitNorms="true" positionIncrementGap="0" indexed="true" stored="false" />
150
+
151
+
152
+ <!-- The "RandomSortField" is not used to store or search any
153
+ data. You can declare fields of this type it in your schema
154
+ to generate psuedo-random orderings of your docs for sorting
155
+ purposes. The ordering is generated based on the field name
156
+ and the version of the index, As long as the index version
157
+ remains unchanged, and the same field name is reused,
158
+ the ordering of the docs will be consistent.
159
+ If you want differend psuedo-random orderings of documents,
160
+ for the same version of the index, use a dynamicField and
161
+ change the name
162
+ -->
163
+ <fieldType name="random" class="solr.RandomSortField" indexed="true" />
164
+
165
+ <!-- solr.TextField allows the specification of custom text analyzers
166
+ specified as a tokenizer and a list of token filters. Different
167
+ analyzers may be specified for indexing and querying.
168
+
169
+ The optional positionIncrementGap puts space between multiple fields of
170
+ this type on the same document, with the purpose of preventing false phrase
171
+ matching across fields.
172
+
173
+ For more info on customizing your analyzer chain, please see
174
+ http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
175
+ -->
176
+
177
+ <!-- One can also specify an existing Analyzer class that has a
178
+ default constructor via the class attribute on the analyzer element
179
+ <fieldType name="text_greek" class="solr.TextField">
180
+ <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>
181
+ </fieldType>
182
+ -->
183
+
184
+ <!-- A text field that only splits on whitespace for exact matching of words -->
185
+ <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
186
+ <analyzer>
187
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
188
+ </analyzer>
189
+ </fieldType>
190
+
191
+ <!-- A text field that uses WordDelimiterFilter to enable splitting and matching of
192
+ words on case-change, alpha numeric boundaries, and non-alphanumeric chars,
193
+ so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi".
194
+ Synonyms and stopwords are customized by external files, and stemming is enabled.
195
+ Duplicate tokens at the same position (which may result from Stemmed Synonyms or
196
+ WordDelim parts) are removed.
197
+ -->
198
+ <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
199
+ <analyzer type="index">
200
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
201
+ <!-- in this example, we will only use synonyms at query time
202
+ <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
203
+ -->
204
+ <!-- Case insensitive stop word removal.
205
+ add enablePositionIncrements=true in both the index and query
206
+ analyzers to leave a 'gap' for more accurate phrase queries.
207
+ -->
208
+ <filter class="solr.StopFilterFactory"
209
+ ignoreCase="true"
210
+ words="stopwords.txt"
211
+ enablePositionIncrements="true"
212
+ />
213
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
214
+ <filter class="solr.LowerCaseFilterFactory"/>
215
+ <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
216
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
217
+ </analyzer>
218
+ <analyzer type="query">
219
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
220
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
221
+ <filter class="solr.StopFilterFactory"
222
+ ignoreCase="true"
223
+ words="stopwords.txt"
224
+ enablePositionIncrements="true"
225
+ />
226
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
227
+ <filter class="solr.LowerCaseFilterFactory"/>
228
+ <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
229
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
230
+ </analyzer>
231
+ </fieldType>
232
+
233
+
234
+ <!-- Less flexible matching, but less false matches. Probably not ideal for product names,
235
+ but may be good for SKUs. Can insert dashes in the wrong place and still match. -->
236
+ <fieldType name="textTight" class="solr.TextField" positionIncrementGap="100" >
237
+ <analyzer>
238
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
239
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
240
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
241
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
242
+ <filter class="solr.LowerCaseFilterFactory"/>
243
+ <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
244
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
245
+ </analyzer>
246
+ </fieldType>
247
+
248
+ <!--
249
+ Setup simple analysis for spell checking
250
+ -->
251
+ <fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" >
252
+ <analyzer>
253
+ <tokenizer class="solr.StandardTokenizerFactory"/>
254
+ <filter class="solr.LowerCaseFilterFactory"/>
255
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
256
+ </analyzer>
257
+ </fieldType>
258
+
259
+ <!-- charFilter + "CharStream aware" WhitespaceTokenizer -->
260
+ <!--
261
+ <fieldType name="textCharNorm" class="solr.TextField" positionIncrementGap="100" >
262
+ <analyzer>
263
+ <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
264
+ <tokenizer class="solr.CharStreamAwareWhitespaceTokenizerFactory"/>
265
+ </analyzer>
266
+ </fieldType>
267
+ -->
268
+
269
+ <!-- This is an example of using the KeywordTokenizer along
270
+ With various TokenFilterFactories to produce a sortable field
271
+ that does not include some properties of the source text
272
+ -->
273
+ <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
274
+ <analyzer>
275
+ <!-- KeywordTokenizer does no actual tokenizing, so the entire
276
+ input string is preserved as a single token
277
+ -->
278
+ <tokenizer class="solr.KeywordTokenizerFactory"/>
279
+ <!-- The LowerCase TokenFilter does what you expect, which can be
280
+ when you want your sorting to be case insensitive
281
+ -->
282
+ <filter class="solr.LowerCaseFilterFactory" />
283
+ <!-- The TrimFilter removes any leading or trailing whitespace -->
284
+ <filter class="solr.TrimFilterFactory" />
285
+ <!-- The PatternReplaceFilter gives you the flexibility to use
286
+ Java Regular expression to replace any sequence of characters
287
+ matching a pattern with an arbitrary replacement string,
288
+ which may include back refrences to portions of the orriginal
289
+ string matched by the pattern.
290
+
291
+ See the Java Regular Expression documentation for more
292
+ infomation on pattern and replacement string syntax.
293
+
294
+ http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html
295
+ -->
296
+ <filter class="solr.PatternReplaceFilterFactory"
297
+ pattern="([^a-z])" replacement="" replace="all"
298
+ />
299
+ </analyzer>
300
+ </fieldType>
301
+
302
+ <fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" >
303
+ <analyzer>
304
+ <tokenizer class="solr.StandardTokenizerFactory"/>
305
+ <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
306
+ </analyzer>
307
+ </fieldtype>
308
+
309
+
310
+ <!-- since fields of this type are by default not stored or indexed, any data added to
311
+ them will be ignored outright
312
+ -->
313
+ <fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" />
314
+
315
+ </types>
316
+
317
+
318
+ <fields>
319
+ <!-- Valid attributes for fields:
320
+ name: mandatory - the name for the field
321
+ type: mandatory - the name of a previously defined type from the <types> section
322
+ indexed: true if this field should be indexed (searchable or sortable)
323
+ stored: true if this field should be retrievable
324
+ compressed: [false] if this field should be stored using gzip compression
325
+ (this will only apply if the field type is compressable; among
326
+ the standard field types, only TextField and StrField are)
327
+ multiValued: true if this field may contain multiple values per document
328
+ omitNorms: (expert) set to true to omit the norms associated with
329
+ this field (this disables length normalization and index-time
330
+ boosting for the field, and saves some memory). Only full-text
331
+ fields or fields that need an index-time boost need norms.
332
+ termVectors: [false] set to true to store the term vector for a given field.
333
+ When using MoreLikeThis, fields used for similarity should be stored for
334
+ best performance.
335
+ termPositions: Store position information with the term vector. This will increase storage costs.
336
+ termOffsets: Store offset information with the term vector. This will increase storage costs.
337
+ -->
338
+
339
+ <field name="messageId" type="string" indexed="true" stored="true" required="true" omitNorms="true" />
340
+ <field name="subject" type="string" indexed="true" stored="true" omitNorms="true" />
341
+ <field name="from" type="string" indexed="true" stored="true" omitNorms="true"/>
342
+ <field name="sentDate" type="date" indexed="true" stored="true"/>
343
+ <field name="xMailer" type="string" indexed="true" stored="true" omitNorms="true"/>
344
+
345
+ <field name="allTo" type="string" indexed="true" stored="true" omitNorms="true" multiValued="true"/>
346
+ <field name="flags" type="string" indexed="true" stored="true" omitNorms="true" multiValued="true"/>
347
+ <field name="content" type="text" indexed="true" stored="true" omitNorms="true" multiValued="true"/>
348
+ <field name="attachment" type="text" indexed="true" stored="true" omitNorms="true" multiValued="true"/>
349
+ <field name="attachmentNames" type="string" indexed="true" stored="true" omitNorms="true" multiValued="true"/>
350
+
351
+ <field name="catchAllField" type="text" indexed="true" stored="true" omitNorms="true" multiValued="true"/>
352
+
353
+ </fields>
354
+
355
+ <copyField source="content" dest="catchAllField"/>
356
+ <copyField source="attachmentNames" dest="catchAllField"/>
357
+ <copyField source="attachment" dest="catchAllField"/>
358
+ <copyField source="subject" dest="catchAllField"/>
359
+ <copyField source="allTo" dest="catchAllField"/>
360
+
361
+ <!-- The unique key, Note that some mail servers may not send the message-id or they may send duplicate ones -->
362
+ <uniqueKey>messageId</uniqueKey>
363
+
364
+ <!-- field for the QueryParser to use when an explicit fieldname is absent -->
365
+ <defaultSearchField>catchAllField</defaultSearchField>
366
+
367
+ <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
368
+ <solrQueryParser defaultOperator="OR"/>
369
+
370
+ </schema>
@@ -0,0 +1,807 @@
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
+ <config>
20
+ <!-- Set this to 'false' if you want solr to continue working after it has
21
+ encountered an severe configuration error. In a production environment,
22
+ you may want solr to keep working even if one handler is mis-configured.
23
+
24
+ You may also set this to false using by setting the system property:
25
+ -Dsolr.abortOnConfigurationError=false
26
+ -->
27
+ <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
28
+
29
+ <lib dir="../../../../contrib/dataimporthandler/lib/" regex=".*jar$" />
30
+ <lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-extras-\d.*\.jar" />
31
+
32
+ <indexDefaults>
33
+ <!-- Values here affect all index writers and act as a default unless overridden. -->
34
+ <useCompoundFile>false</useCompoundFile>
35
+
36
+ <mergeFactor>10</mergeFactor>
37
+ <!--
38
+ If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.
39
+
40
+ -->
41
+ <!--<maxBufferedDocs>1000</maxBufferedDocs>-->
42
+ <!-- Tell Lucene when to flush documents to disk.
43
+ Giving Lucene more memory for indexing means faster indexing at the cost of more RAM
44
+
45
+ If both ramBufferSizeMB and maxBufferedDocs is set, then Lucene will flush based on whichever limit is hit first.
46
+
47
+ -->
48
+ <ramBufferSizeMB>32</ramBufferSizeMB>
49
+ <maxMergeDocs>2147483647</maxMergeDocs>
50
+ <maxFieldLength>10000</maxFieldLength>
51
+ <writeLockTimeout>1000</writeLockTimeout>
52
+ <commitLockTimeout>10000</commitLockTimeout>
53
+
54
+ <!--
55
+ Expert: Turn on Lucene's auto commit capability.
56
+ This causes intermediate segment flushes to write a new lucene
57
+ index descriptor, enabling it to be opened by an external
58
+ IndexReader.
59
+ NOTE: Despite the name, this value does not have any relation to Solr's autoCommit functionality
60
+ -->
61
+ <!--<luceneAutoCommit>false</luceneAutoCommit>-->
62
+ <!--
63
+ Expert:
64
+ The Merge Policy in Lucene controls how merging is handled by Lucene. The default in 2.3 is the LogByteSizeMergePolicy, previous
65
+ versions used LogDocMergePolicy.
66
+
67
+ LogByteSizeMergePolicy chooses segments to merge based on their size. The Lucene 2.2 default, LogDocMergePolicy chose when
68
+ to merge based on number of documents
69
+
70
+ Other implementations of MergePolicy must have a no-argument constructor
71
+ -->
72
+ <!--<mergePolicy>org.apache.lucene.index.LogByteSizeMergePolicy</mergePolicy>-->
73
+
74
+ <!--
75
+ Expert:
76
+ The Merge Scheduler in Lucene controls how merges are performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
77
+ can perform merges in the background using separate threads. The SerialMergeScheduler (Lucene 2.2 default) does not.
78
+ -->
79
+ <!--<mergeScheduler>org.apache.lucene.index.ConcurrentMergeScheduler</mergeScheduler>-->
80
+
81
+ <!--
82
+ This option specifies which Lucene LockFactory implementation to use.
83
+
84
+ single = SingleInstanceLockFactory - suggested for a read-only index
85
+ or when there is no possibility of another process trying
86
+ to modify the index.
87
+ native = NativeFSLockFactory
88
+ simple = SimpleFSLockFactory
89
+
90
+ (For backwards compatibility with Solr 1.2, 'simple' is the default
91
+ if not specified.)
92
+ -->
93
+ <lockType>single</lockType>
94
+ </indexDefaults>
95
+
96
+ <mainIndex>
97
+ <!-- options specific to the main on-disk lucene index -->
98
+ <useCompoundFile>false</useCompoundFile>
99
+ <ramBufferSizeMB>32</ramBufferSizeMB>
100
+ <mergeFactor>10</mergeFactor>
101
+ <!-- Deprecated -->
102
+ <!--<maxBufferedDocs>1000</maxBufferedDocs>-->
103
+ <maxMergeDocs>2147483647</maxMergeDocs>
104
+ <maxFieldLength>10000</maxFieldLength>
105
+
106
+ <!-- If true, unlock any held write or commit locks on startup.
107
+ This defeats the locking mechanism that allows multiple
108
+ processes to safely access a lucene index, and should be
109
+ used with care.
110
+ This is not needed if lock type is 'none' or 'single'
111
+ -->
112
+ <unlockOnStartup>false</unlockOnStartup>
113
+
114
+ <!--
115
+ Custom deletion policies can specified here. The class must
116
+ implement org.apache.lucene.index.IndexDeletionPolicy.
117
+
118
+ http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/index/IndexDeletionPolicy.html
119
+
120
+ The standard Solr IndexDeletionPolicy implementation supports deleting
121
+ index commit points on number of commits, age of commit point and
122
+ optimized status.
123
+
124
+ The latest commit point should always be preserved regardless
125
+ of the criteria.
126
+ -->
127
+ <deletionPolicy class="solr.SolrDeletionPolicy">
128
+ <!-- Keep only optimized commit points -->
129
+ <str name="keepOptimizedOnly">false</str>
130
+ <!-- The maximum number of commit points to be kept -->
131
+ <str name="maxCommitsToKeep">1</str>
132
+ <!--
133
+ Delete all commit points once they have reached the given age.
134
+ Supports DateMathParser syntax e.g.
135
+
136
+ <str name="maxCommitAge">30MINUTES</str>
137
+ <str name="maxCommitAge">1DAY</str>
138
+ -->
139
+ </deletionPolicy>
140
+
141
+ </mainIndex>
142
+
143
+ <!-- Enables JMX if and only if an existing MBeanServer is found, use
144
+ this if you want to configure JMX through JVM parameters. Remove
145
+ this to disable exposing Solr configuration and statistics to JMX.
146
+
147
+ If you want to connect to a particular server, specify the agentId
148
+ e.g. <jmx agentId="myAgent" />
149
+
150
+ If you want to start a new MBeanServer, specify the serviceUrl
151
+ e.g <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr" />
152
+
153
+ For more details see http://wiki.apache.org/solr/SolrJmx
154
+ -->
155
+ <jmx />
156
+
157
+ <!-- the default high-performance update handler -->
158
+ <updateHandler class="solr.DirectUpdateHandler2">
159
+
160
+ <!-- A prefix of "solr." for class names is an alias that
161
+ causes solr to search appropriate packages, including
162
+ org.apache.solr.(search|update|request|core|analysis)
163
+ -->
164
+
165
+ <!-- Perform a <commit/> automatically under certain conditions:
166
+ maxDocs - number of updates since last commit is greater than this
167
+ maxTime - oldest uncommited update (in ms) is this long ago
168
+ <autoCommit>
169
+ <maxDocs>10000</maxDocs>
170
+ <maxTime>1000</maxTime>
171
+ </autoCommit>
172
+ -->
173
+
174
+ <!-- The RunExecutableListener executes an external command.
175
+ exe - the name of the executable to run
176
+ dir - dir to use as the current working directory. default="."
177
+ wait - the calling thread waits until the executable returns. default="true"
178
+ args - the arguments to pass to the program. default=nothing
179
+ env - environment variables to set. default=nothing
180
+ -->
181
+ <!-- A postCommit event is fired after every commit or optimize command
182
+ <listener event="postCommit" class="solr.RunExecutableListener">
183
+ <str name="exe">solr/bin/snapshooter</str>
184
+ <str name="dir">.</str>
185
+ <bool name="wait">true</bool>
186
+ <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
187
+ <arr name="env"> <str>MYVAR=val1</str> </arr>
188
+ </listener>
189
+ -->
190
+ <!-- A postOptimize event is fired only after every optimize command, useful
191
+ in conjunction with index distribution to only distribute optimized indicies
192
+ <listener event="postOptimize" class="solr.RunExecutableListener">
193
+ <str name="exe">snapshooter</str>
194
+ <str name="dir">solr/bin</str>
195
+ <bool name="wait">true</bool>
196
+ </listener>
197
+ -->
198
+
199
+ </updateHandler>
200
+
201
+
202
+ <query>
203
+ <!-- Maximum number of clauses in a boolean query... can affect
204
+ range or prefix queries that expand to big boolean
205
+ queries. An exception is thrown if exceeded. -->
206
+ <maxBooleanClauses>1024</maxBooleanClauses>
207
+
208
+
209
+ <!-- There are two implementations of cache available for Solr,
210
+ LRUCache, based on a synchronized LinkedHashMap, and
211
+ FastLRUCache, based on a ConcurrentHashMap. FastLRUCache has faster gets
212
+ and slower puts in single threaded operation and thus is generally faster
213
+ than LRUCache when the hit ratio of the cache is high (> 75%), and may be
214
+ faster under other scenarios on multi-cpu systems. -->
215
+ <!-- Cache used by SolrIndexSearcher for filters (DocSets),
216
+ unordered sets of *all* documents that match a query.
217
+ When a new searcher is opened, its caches may be prepopulated
218
+ or "autowarmed" using data from caches in the old searcher.
219
+ autowarmCount is the number of items to prepopulate. For LRUCache,
220
+ the autowarmed items will be the most recently accessed items.
221
+ Parameters:
222
+ class - the SolrCache implementation LRUCache or FastLRUCache
223
+ size - the maximum number of entries in the cache
224
+ initialSize - the initial capacity (number of entries) of
225
+ the cache. (seel java.util.HashMap)
226
+ autowarmCount - the number of entries to prepopulate from
227
+ and old cache.
228
+ -->
229
+ <filterCache
230
+ class="solr.FastLRUCache"
231
+ size="512"
232
+ initialSize="512"
233
+ autowarmCount="128"/>
234
+
235
+ <!-- Cache used to hold field values that are quickly accessible
236
+ by document id. The fieldValueCache is created by default
237
+ even if not configured here.
238
+ <fieldValueCache
239
+ class="solr.FastLRUCache"
240
+ size="512"
241
+ autowarmCount="128"
242
+ showItems="32"
243
+ />
244
+ -->
245
+
246
+ <!-- queryResultCache caches results of searches - ordered lists of
247
+ document ids (DocList) based on a query, a sort, and the range
248
+ of documents requested. -->
249
+ <queryResultCache
250
+ class="solr.LRUCache"
251
+ size="512"
252
+ initialSize="512"
253
+ autowarmCount="32"/>
254
+
255
+ <!-- documentCache caches Lucene Document objects (the stored fields for each document).
256
+ Since Lucene internal document ids are transient, this cache will not be autowarmed. -->
257
+ <documentCache
258
+ class="solr.LRUCache"
259
+ size="512"
260
+ initialSize="512"
261
+ autowarmCount="0"/>
262
+
263
+ <!-- If true, stored fields that are not requested will be loaded lazily.
264
+
265
+ This can result in a significant speed improvement if the usual case is to
266
+ not load all stored fields, especially if the skipped fields are large compressed
267
+ text fields.
268
+ -->
269
+ <enableLazyFieldLoading>true</enableLazyFieldLoading>
270
+
271
+ <!-- Example of a generic cache. These caches may be accessed by name
272
+ through SolrIndexSearcher.getCache(),cacheLookup(), and cacheInsert().
273
+ The purpose is to enable easy caching of user/application level data.
274
+ The regenerator argument should be specified as an implementation
275
+ of solr.search.CacheRegenerator if autowarming is desired. -->
276
+ <!--
277
+ <cache name="myUserCache"
278
+ class="solr.LRUCache"
279
+ size="4096"
280
+ initialSize="1024"
281
+ autowarmCount="1024"
282
+ regenerator="org.mycompany.mypackage.MyRegenerator"
283
+ />
284
+ -->
285
+
286
+ <!-- An optimization that attempts to use a filter to satisfy a search.
287
+ If the requested sort does not include score, then the filterCache
288
+ will be checked for a filter matching the query. If found, the filter
289
+ will be used as the source of document ids, and then the sort will be
290
+ applied to that.
291
+ <useFilterForSortedQuery>true</useFilterForSortedQuery>
292
+ -->
293
+
294
+ <!-- An optimization for use with the queryResultCache. When a search
295
+ is requested, a superset of the requested number of document ids
296
+ are collected. For example, if a search for a particular query
297
+ requests matching documents 10 through 19, and queryWindowSize is 50,
298
+ then documents 0 through 49 will be collected and cached. Any further
299
+ requests in that range can be satisfied via the cache. -->
300
+ <queryResultWindowSize>50</queryResultWindowSize>
301
+
302
+ <!-- Maximum number of documents to cache for any entry in the
303
+ queryResultCache. -->
304
+ <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
305
+
306
+ <!-- This entry enables an int hash representation for filters (DocSets)
307
+ when the number of items in the set is less than maxSize. For smaller
308
+ sets, this representation is more memory efficient, more efficient to
309
+ iterate over, and faster to take intersections. -->
310
+ <HashDocSet maxSize="3000" loadFactor="0.75"/>
311
+
312
+ <!-- a newSearcher event is fired whenever a new searcher is being prepared
313
+ and there is a current searcher handling requests (aka registered). -->
314
+ <!-- QuerySenderListener takes an array of NamedList and executes a
315
+ local query request for each NamedList in sequence. -->
316
+ <listener event="newSearcher" class="solr.QuerySenderListener">
317
+ <arr name="queries">
318
+ <lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> </lst>
319
+ <lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> </lst>
320
+ <lst><str name="q">static newSearcher warming query from solrconfig.xml</str></lst>
321
+ </arr>
322
+ </listener>
323
+
324
+ <!-- a firstSearcher event is fired whenever a new searcher is being
325
+ prepared but there is no current registered searcher to handle
326
+ requests or to gain autowarming data from. -->
327
+ <listener event="firstSearcher" class="solr.QuerySenderListener">
328
+ <arr name="queries">
329
+ <lst> <str name="q">fast_warm</str> <str name="start">0</str> <str name="rows">10</str> </lst>
330
+ <lst><str name="q">static firstSearcher warming query from solrconfig.xml</str></lst>
331
+ </arr>
332
+ </listener>
333
+
334
+ <!-- If a search request comes in and there is no current registered searcher,
335
+ then immediately register the still warming searcher and use it. If
336
+ "false" then all requests will block until the first searcher is done
337
+ warming. -->
338
+ <useColdSearcher>false</useColdSearcher>
339
+
340
+ <!-- Maximum number of searchers that may be warming in the background
341
+ concurrently. An error is returned if this limit is exceeded. Recommend
342
+ 1-2 for read-only slaves, higher for masters w/o cache warming. -->
343
+ <maxWarmingSearchers>2</maxWarmingSearchers>
344
+
345
+ </query>
346
+
347
+ <!--
348
+ Let the dispatch filter handler /select?qt=XXX
349
+ handleSelect=true will use consistent error handling for /select and /update
350
+ handleSelect=false will use solr1.1 style error formatting
351
+ -->
352
+ <requestDispatcher handleSelect="true" >
353
+ <!--Make sure your system has some authentication before enabling remote streaming! -->
354
+ <requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048000" />
355
+
356
+ <!-- Set HTTP caching related parameters (for proxy caches and clients).
357
+
358
+ To get the behaviour of Solr 1.2 (ie: no caching related headers)
359
+ use the never304="true" option and do not specify a value for
360
+ <cacheControl>
361
+ -->
362
+ <!-- <httpCaching never304="true"> -->
363
+ <httpCaching lastModifiedFrom="openTime"
364
+ etagSeed="Solr">
365
+ <!-- lastModFrom="openTime" is the default, the Last-Modified value
366
+ (and validation against If-Modified-Since requests) will all be
367
+ relative to when the current Searcher was opened.
368
+ You can change it to lastModFrom="dirLastMod" if you want the
369
+ value to exactly corrispond to when the physical index was last
370
+ modified.
371
+
372
+ etagSeed="..." is an option you can change to force the ETag
373
+ header (and validation against If-None-Match requests) to be
374
+ differnet even if the index has not changed (ie: when making
375
+ significant changes to your config file)
376
+
377
+ lastModifiedFrom and etagSeed are both ignored if you use the
378
+ never304="true" option.
379
+ -->
380
+ <!-- If you include a <cacheControl> directive, it will be used to
381
+ generate a Cache-Control header, as well as an Expires header
382
+ if the value contains "max-age="
383
+
384
+ By default, no Cache-Control header is generated.
385
+
386
+ You can use the <cacheControl> option even if you have set
387
+ never304="true"
388
+ -->
389
+ <!-- <cacheControl>max-age=30, public</cacheControl> -->
390
+ </httpCaching>
391
+ </requestDispatcher>
392
+
393
+
394
+ <!-- requestHandler plugins... incoming queries will be dispatched to the
395
+ correct handler based on the path or the qt (query type) param.
396
+ Names starting with a '/' are accessed with the a path equal to the
397
+ registered name. Names without a leading '/' are accessed with:
398
+ http://host/app/select?qt=name
399
+ If no qt is defined, the requestHandler that declares default="true"
400
+ will be used.
401
+ -->
402
+ <requestHandler name="standard" class="solr.SearchHandler" default="true">
403
+ <!-- default values for query parameters -->
404
+ <lst name="defaults">
405
+ <str name="echoParams">explicit</str>
406
+ <!--
407
+ <int name="rows">10</int>
408
+ <str name="fl">*</str>
409
+ <str name="version">2.1</str>
410
+ -->
411
+ </lst>
412
+ </requestHandler>
413
+
414
+ <!-- Please refer to http://wiki.apache.org/solr/SolrReplication for details on configuring replication -->
415
+ <!--Master config-->
416
+ <!--
417
+ <requestHandler name="/replication" class="solr.ReplicationHandler" >
418
+ <lst name="master">
419
+ <str name="replicateAfter">commit</str>
420
+ <str name="confFiles">schema.xml,stopwords.txt</str>
421
+ </lst>
422
+ </requestHandler>
423
+ -->
424
+ <!-- Slave config-->
425
+ <!--
426
+ <requestHandler name="/replication" class="solr.ReplicationHandler">
427
+ <lst name="slave">
428
+ <str name="masterUrl">http://localhost:8983/solr/replication</str>
429
+ <str name="pollInterval">00:00:60</str>
430
+ </lst>
431
+ </requestHandler>
432
+ -->
433
+
434
+ <!-- DisMaxRequestHandler allows easy searching across multiple fields
435
+ for simple user-entered phrases. It's implementation is now
436
+ just the standard SearchHandler with a default query type
437
+ of "dismax".
438
+ see http://wiki.apache.org/solr/DisMaxRequestHandler
439
+ -->
440
+ <requestHandler name="dismax" class="solr.SearchHandler" >
441
+ <lst name="defaults">
442
+ <str name="defType">dismax</str>
443
+ <str name="echoParams">explicit</str>
444
+ <float name="tie">0.01</float>
445
+ <str name="qf">
446
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
447
+ </str>
448
+ <str name="pf">
449
+ text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
450
+ </str>
451
+ <str name="bf">
452
+ ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3
453
+ </str>
454
+ <str name="fl">
455
+ id,name,price,score
456
+ </str>
457
+ <str name="mm">
458
+ 2&lt;-1 5&lt;-2 6&lt;90%
459
+ </str>
460
+ <int name="ps">100</int>
461
+ <str name="q.alt">*:*</str>
462
+ <!-- example highlighter config, enable per-query with hl=true -->
463
+ <str name="hl.fl">text features name</str>
464
+ <!-- for this field, we want no fragmenting, just highlighting -->
465
+ <str name="f.name.hl.fragsize">0</str>
466
+ <!-- instructs Solr to return the field itself if no query terms are
467
+ found -->
468
+ <str name="f.name.hl.alternateField">name</str>
469
+ <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
470
+ </lst>
471
+ </requestHandler>
472
+
473
+ <!-- Note how you can register the same handler multiple times with
474
+ different names (and different init parameters)
475
+ -->
476
+ <requestHandler name="partitioned" class="solr.SearchHandler" >
477
+ <lst name="defaults">
478
+ <str name="defType">dismax</str>
479
+ <str name="echoParams">explicit</str>
480
+ <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>
481
+ <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
482
+ <!-- This is an example of using Date Math to specify a constantly
483
+ moving date range in a config...
484
+ -->
485
+ <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>
486
+ </lst>
487
+ <!-- In addition to defaults, "appends" params can be specified
488
+ to identify values which should be appended to the list of
489
+ multi-val params from the query (or the existing "defaults").
490
+
491
+ In this example, the param "fq=instock:true" will be appended to
492
+ any query time fq params the user may specify, as a mechanism for
493
+ partitioning the index, independent of any user selected filtering
494
+ that may also be desired (perhaps as a result of faceted searching).
495
+
496
+ NOTE: there is *absolutely* nothing a client can do to prevent these
497
+ "appends" values from being used, so don't use this mechanism
498
+ unless you are sure you always want it.
499
+ -->
500
+ <lst name="appends">
501
+ <str name="fq">inStock:true</str>
502
+ </lst>
503
+ <!-- "invariants" are a way of letting the Solr maintainer lock down
504
+ the options available to Solr clients. Any params values
505
+ specified here are used regardless of what values may be specified
506
+ in either the query, the "defaults", or the "appends" params.
507
+
508
+ In this example, the facet.field and facet.query params are fixed,
509
+ limiting the facets clients can use. Faceting is not turned on by
510
+ default - but if the client does specify facet=true in the request,
511
+ these are the only facets they will be able to see counts for;
512
+ regardless of what other facet.field or facet.query params they
513
+ may specify.
514
+
515
+ NOTE: there is *absolutely* nothing a client can do to prevent these
516
+ "invariants" values from being used, so don't use this mechanism
517
+ unless you are sure you always want it.
518
+ -->
519
+ <lst name="invariants">
520
+ <str name="facet.field">cat</str>
521
+ <str name="facet.field">manu_exact</str>
522
+ <str name="facet.query">price:[* TO 500]</str>
523
+ <str name="facet.query">price:[500 TO *]</str>
524
+ </lst>
525
+ </requestHandler>
526
+
527
+
528
+ <!--
529
+ Search components are registered to SolrCore and used by Search Handlers
530
+
531
+ By default, the following components are avaliable:
532
+
533
+ <searchComponent name="query" class="org.apache.solr.handler.component.QueryComponent" />
534
+ <searchComponent name="facet" class="org.apache.solr.handler.component.FacetComponent" />
535
+ <searchComponent name="mlt" class="org.apache.solr.handler.component.MoreLikeThisComponent" />
536
+ <searchComponent name="highlight" class="org.apache.solr.handler.component.HighlightComponent" />
537
+ <searchComponent name="stats" class="org.apache.solr.handler.component.StatsComponent" />
538
+ <searchComponent name="debug" class="org.apache.solr.handler.component.DebugComponent" />
539
+
540
+ Default configuration in a requestHandler would look like:
541
+ <arr name="components">
542
+ <str>query</str>
543
+ <str>facet</str>
544
+ <str>mlt</str>
545
+ <str>highlight</str>
546
+ <str>stats</str>
547
+ <str>debug</str>
548
+ </arr>
549
+
550
+ If you register a searchComponent to one of the standard names, that will be used instead.
551
+ To insert components before or after the 'standard' components, use:
552
+
553
+ <arr name="first-components">
554
+ <str>myFirstComponentName</str>
555
+ </arr>
556
+
557
+ <arr name="last-components">
558
+ <str>myLastComponentName</str>
559
+ </arr>
560
+ -->
561
+
562
+ <!-- The spell check component can return a list of alternative spelling
563
+ suggestions. -->
564
+ <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
565
+
566
+ <str name="queryAnalyzerFieldType">textSpell</str>
567
+
568
+ <lst name="spellchecker">
569
+ <str name="name">default</str>
570
+ <str name="field">spell</str>
571
+ <str name="spellcheckIndexDir">./spellchecker1</str>
572
+
573
+ </lst>
574
+ <lst name="spellchecker">
575
+ <str name="name">jarowinkler</str>
576
+ <str name="field">spell</str>
577
+ <!-- Use a different Distance Measure -->
578
+ <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
579
+ <str name="spellcheckIndexDir">./spellchecker2</str>
580
+
581
+ </lst>
582
+
583
+ <lst name="spellchecker">
584
+ <str name="classname">solr.FileBasedSpellChecker</str>
585
+ <str name="name">file</str>
586
+ <str name="sourceLocation">spellings.txt</str>
587
+ <str name="characterEncoding">UTF-8</str>
588
+ <str name="spellcheckIndexDir">./spellcheckerFile</str>
589
+ </lst>
590
+ </searchComponent>
591
+
592
+ <!-- A request handler utilizing the spellcheck component.
593
+ ################################################################################################
594
+ NOTE: This is purely as an example. The whole purpose of the SpellCheckComponent is to hook it into
595
+ the request handler that handles (i.e. the standard or dismax SearchHandler)
596
+ queries such that a separate request is not needed to get suggestions.
597
+
598
+ IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
599
+ ################################################################################################
600
+ -->
601
+ <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">
602
+ <lst name="defaults">
603
+ <!-- omp = Only More Popular -->
604
+ <str name="spellcheck.onlyMorePopular">false</str>
605
+ <!-- exr = Extended Results -->
606
+ <str name="spellcheck.extendedResults">false</str>
607
+ <!-- The number of suggestions to return -->
608
+ <str name="spellcheck.count">1</str>
609
+ </lst>
610
+ <arr name="last-components">
611
+ <str>spellcheck</str>
612
+ </arr>
613
+ </requestHandler>
614
+
615
+ <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
616
+ <lst name="defaults">
617
+ <str name="config">data-config.xml</str>
618
+ </lst>
619
+ </requestHandler>
620
+
621
+ <searchComponent name="tvComponent" class="org.apache.solr.handler.component.TermVectorComponent"/>
622
+ <!-- A Req Handler for working with the tvComponent. This is purely as an example.
623
+ You will likely want to add the component to your already specified request handlers. -->
624
+ <requestHandler name="tvrh" class="org.apache.solr.handler.component.SearchHandler">
625
+ <lst name="defaults">
626
+ <bool name="tv">true</bool>
627
+ </lst>
628
+ <arr name="last-components">
629
+ <str>tvComponent</str>
630
+ </arr>
631
+ </requestHandler>
632
+
633
+ <!--
634
+ <requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
635
+ <lst name="defaults">
636
+ <str name="ext.map.Last-Modified">last_modified</str>
637
+ <bool name="ext.ignore.und.fl">true</bool>
638
+ </lst>
639
+ </requestHandler>
640
+ -->
641
+
642
+
643
+
644
+ <searchComponent name="termsComp" class="org.apache.solr.handler.component.TermsComponent"/>
645
+
646
+ <requestHandler name="/autoSuggest" class="org.apache.solr.handler.component.SearchHandler">
647
+ <arr name="components">
648
+ <str>termsComp</str>
649
+ </arr>
650
+ </requestHandler>
651
+
652
+
653
+ <!-- Update request handler.
654
+
655
+ Note: Since solr1.1 requestHandlers requires a valid content type header if posted in
656
+ the body. For example, curl now requires: -H 'Content-type:text/xml; charset=utf-8'
657
+ The response format differs from solr1.1 formatting and returns a standard error code.
658
+
659
+ To enable solr1.1 behavior, remove the /update handler or change its path
660
+ -->
661
+ <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />
662
+
663
+
664
+ <requestHandler name="/update/javabin" class="solr.BinaryUpdateRequestHandler" />
665
+
666
+ <!--
667
+ Analysis request handler. Since Solr 1.3. Use to returnhow a document is analyzed. Useful
668
+ for debugging and as a token server for other types of applications
669
+ -->
670
+ <requestHandler name="/analysis" class="solr.AnalysisRequestHandler" />
671
+
672
+
673
+ <!-- CSV update handler, loaded on demand -->
674
+ <requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy" />
675
+
676
+
677
+ <!--
678
+ Admin Handlers - This will register all the standard admin RequestHandlers. Adding
679
+ this single handler is equivalent to registering:
680
+
681
+ <requestHandler name="/admin/luke" class="org.apache.solr.handler.admin.LukeRequestHandler" />
682
+ <requestHandler name="/admin/system" class="org.apache.solr.handler.admin.SystemInfoHandler" />
683
+ <requestHandler name="/admin/plugins" class="org.apache.solr.handler.admin.PluginInfoHandler" />
684
+ <requestHandler name="/admin/threads" class="org.apache.solr.handler.admin.ThreadDumpHandler" />
685
+ <requestHandler name="/admin/properties" class="org.apache.solr.handler.admin.PropertiesRequestHandler" />
686
+ <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >
687
+
688
+ If you wish to hide files under ${solr.home}/conf, explicitly register the ShowFileRequestHandler using:
689
+ <requestHandler name="/admin/file" class="org.apache.solr.handler.admin.ShowFileRequestHandler" >
690
+ <lst name="invariants">
691
+ <str name="hidden">synonyms.txt</str>
692
+ <str name="hidden">anotherfile.txt</str>
693
+ </lst>
694
+ </requestHandler>
695
+ -->
696
+ <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
697
+
698
+ <!-- ping/healthcheck -->
699
+ <requestHandler name="/admin/ping" class="PingRequestHandler">
700
+ <lst name="defaults">
701
+ <str name="qt">standard</str>
702
+ <str name="q">solrpingquery</str>
703
+ <str name="echoParams">all</str>
704
+ </lst>
705
+ </requestHandler>
706
+
707
+ <!-- Echo the request contents back to the client -->
708
+ <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
709
+ <lst name="defaults">
710
+ <str name="echoParams">explicit</str> <!-- for all params (including the default etc) use: 'all' -->
711
+ <str name="echoHandler">true</str>
712
+ </lst>
713
+ </requestHandler>
714
+
715
+ <highlighting>
716
+ <!-- Configure the standard fragmenter -->
717
+ <!-- This could most likely be commented out in the "default" case -->
718
+ <fragmenter name="gap" class="org.apache.solr.highlight.GapFragmenter" default="true">
719
+ <lst name="defaults">
720
+ <int name="hl.fragsize">100</int>
721
+ </lst>
722
+ </fragmenter>
723
+
724
+ <!-- A regular-expression-based fragmenter (f.i., for sentence extraction) -->
725
+ <fragmenter name="regex" class="org.apache.solr.highlight.RegexFragmenter">
726
+ <lst name="defaults">
727
+ <!-- slightly smaller fragsizes work better because of slop -->
728
+ <int name="hl.fragsize">70</int>
729
+ <!-- allow 50% slop on fragment sizes -->
730
+ <float name="hl.regex.slop">0.5</float>
731
+ <!-- a basic sentence pattern -->
732
+ <str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>
733
+ </lst>
734
+ </fragmenter>
735
+
736
+ <!-- Configure the standard formatter -->
737
+ <formatter name="html" class="org.apache.solr.highlight.HtmlFormatter" default="true">
738
+ <lst name="defaults">
739
+ <str name="hl.simple.pre"><![CDATA[<em>]]></str>
740
+ <str name="hl.simple.post"><![CDATA[</em>]]></str>
741
+ </lst>
742
+ </formatter>
743
+ </highlighting>
744
+
745
+ <!-- An example dedup update processor that creates the "id" field on the fly
746
+ based on the hash code of some other fields. This example has overwriteDupes
747
+ set to false since we are using the id field as the signatureField and Solr
748
+ will maintain uniqueness based on that anyway. -->
749
+ <!--
750
+ <updateRequestProcessorChain name="dedupe">
751
+ <processor class="org.apache.solr.update.processor.SignatureUpdateProcessorFactory">
752
+ <bool name="enabled">true</bool>
753
+ <str name="signatureField">id</str>
754
+ <bool name="overwriteDupes">false</bool>
755
+ <str name="fields">name,features,cat</str>
756
+ <str name="signatureClass">org.apache.solr.update.processor.Lookup3Signature</str>
757
+ </processor>
758
+ <processor class="solr.LogUpdateProcessorFactory" />
759
+ <processor class="solr.RunUpdateProcessorFactory" />
760
+ </updateRequestProcessorChain>
761
+ -->
762
+
763
+
764
+ <!-- queryResponseWriter plugins... query responses will be written using the
765
+ writer specified by the 'wt' request parameter matching the name of a registered
766
+ writer.
767
+ The "default" writer is the default and will be used if 'wt' is not specified
768
+ in the request. XMLResponseWriter will be used if nothing is specified here.
769
+ The json, python, and ruby writers are also available by default.
770
+
771
+ <queryResponseWriter name="xml" class="org.apache.solr.request.XMLResponseWriter" default="true"/>
772
+ <queryResponseWriter name="json" class="org.apache.solr.request.JSONResponseWriter"/>
773
+ <queryResponseWriter name="python" class="org.apache.solr.request.PythonResponseWriter"/>
774
+ <queryResponseWriter name="ruby" class="org.apache.solr.request.RubyResponseWriter"/>
775
+ <queryResponseWriter name="php" class="org.apache.solr.request.PHPResponseWriter"/>
776
+ <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>
777
+
778
+ <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
779
+ -->
780
+
781
+ <!-- XSLT response writer transforms the XML output by any xslt file found
782
+ in Solr's conf/xslt directory. Changes to xslt files are checked for
783
+ every xsltCacheLifetimeSeconds.
784
+ -->
785
+ <queryResponseWriter name="xslt" class="org.apache.solr.request.XSLTResponseWriter">
786
+ <int name="xsltCacheLifetimeSeconds">5</int>
787
+ </queryResponseWriter>
788
+
789
+
790
+ <!-- example of registering a query parser
791
+ <queryParser name="lucene" class="org.apache.solr.search.LuceneQParserPlugin"/>
792
+ -->
793
+
794
+ <!-- example of registering a custom function parser
795
+ <valueSourceParser name="myfunc" class="com.mycompany.MyValueSourceParser" />
796
+ -->
797
+
798
+ <!-- config for the admin interface -->
799
+ <admin>
800
+ <defaultQuery>solr</defaultQuery>
801
+
802
+ <!-- configure a healthcheck file for servers behind a loadbalancer
803
+ <healthcheck type="file">server-enabled</healthcheck>
804
+ -->
805
+ </admin>
806
+
807
+ </config>