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,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,126 @@
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
+
32
+ <schema name="tannng_bed" version="0.1">
33
+ <types>
34
+ <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="false"/>
35
+ <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="false"/>
36
+ <fieldType name="integer" class="solr.IntField" omitNorms="false"/>
37
+ <fieldType name="long" class="solr.LongField" omitNorms="false"/>
38
+ <fieldType name="float" class="solr.FloatField" omitNorms="false"/>
39
+ <fieldType name="double" class="solr.DoubleField" omitNorms="false"/>
40
+ <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="false"/>
41
+ <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="false"/>
42
+ <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="false"/>
43
+ <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="false"/>
44
+ <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="false"/>
45
+ <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
46
+ <analyzer>
47
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
48
+ </analyzer>
49
+ </fieldType>
50
+
51
+ <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
52
+ <analyzer type="index">
53
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
54
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
55
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
56
+ <filter class="solr.LowerCaseFilterFactory"/>
57
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
58
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
59
+ </analyzer>
60
+ <analyzer type="query">
61
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
62
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
63
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
64
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
65
+ <filter class="solr.LowerCaseFilterFactory"/>
66
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
67
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
68
+ </analyzer>
69
+ </fieldType>
70
+
71
+ <fieldType name="textTight" class="solr.TextField" positionIncrementGap="100" >
72
+ <analyzer>
73
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
74
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
75
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
76
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
77
+ <filter class="solr.LowerCaseFilterFactory"/>
78
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
79
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
80
+ </analyzer>
81
+ </fieldType>
82
+
83
+ <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="false">
84
+ <analyzer>
85
+ <tokenizer class="solr.KeywordTokenizerFactory"/>
86
+ <filter class="solr.LowerCaseFilterFactory" />
87
+ <filter class="solr.TrimFilterFactory" />
88
+ <filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all"/>
89
+ </analyzer>
90
+ </fieldType>
91
+
92
+ <fieldtype name="text_zh" class="solr.TextField">
93
+ <analyzer class="org.apache.lucene.analysis.cn.ChineseAnalyzer"/>
94
+ </fieldtype>
95
+
96
+ </types>
97
+
98
+
99
+ <fields>
100
+ <field name="search_id" type="string" indexed="true" stored="true" required="true" />
101
+ <field name="pk_i" type="integer" indexed="true" stored="true"/>
102
+ <field name="pk_s" type="string" indexed="true" stored="true"/>
103
+ <field name="text" type="text" indexed="true" stored="false" multiValued="true"/>
104
+
105
+ <dynamicField name="*_i" type="integer" indexed="true" stored="false"/>
106
+ <dynamicField name="*_t" type="text" indexed="true" stored="false"/>
107
+ <dynamicField name="*_f" type="float" indexed="true" stored="false"/>
108
+ <dynamicField name="*_b" type="boolean" indexed="true" stored="false"/>
109
+ <dynamicField name="*_d" type="date" indexed="true" stored="false"/>
110
+ <dynamicField name="*_s" type="string" indexed="true" stored="false"/>
111
+ <dynamicField name="*_ri" type="sint" indexed="true" stored="false"/>
112
+ <dynamicField name="*_rf" type="sfloat" indexed="true" stored="false"/>
113
+ <dynamicField name="*_facet" type="string" indexed="true" stored="false"/>
114
+ <dynamicField name="*_s_mv" type="string" indexed="true" stored="false" multiValued="true"/>
115
+ <dynamicField name="*_zh_text" type="text_zh" indexed="true" stored="false" multiValued="true"/>
116
+ <dynamicField name="*_display" type="text" indexed="false" stored="true" multiValued="true"/>
117
+ </fields>
118
+
119
+ <uniqueKey>search_id</uniqueKey>
120
+ <defaultSearchField>text</defaultSearchField>
121
+
122
+ <copyField source="*_t" dest="text"/>
123
+ <copyField source="*_facet" dest="text"/>
124
+ <solrQueryParser defaultOperator="AND"/>
125
+
126
+ </schema>
@@ -0,0 +1,24 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ user=
17
+ solr_hostname=localhost
18
+ solr_port=8983
19
+ rsyncd_port=18983
20
+ data_dir=
21
+ webapp_name=solr
22
+ master_host=
23
+ master_data_dir=
24
+ master_status_dir=
@@ -0,0 +1,458 @@
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
+ <!-- Used to specify an alternate directory to hold all index data
30
+ other than the default ./data under the Solr home.
31
+ If replication is in use, this should match the replication configuration. -->
32
+
33
+ <dataDir>${solr.data.dir:./solr/data}</dataDir>
34
+
35
+ <indexDefaults>
36
+ <!-- Values here affect all index writers and act as a default unless overridden. -->
37
+ <useCompoundFile>false</useCompoundFile>
38
+ <mergeFactor>10</mergeFactor>
39
+ <maxBufferedDocs>1000</maxBufferedDocs>
40
+ <maxMergeDocs>2147483647</maxMergeDocs>
41
+ <maxFieldLength>10000</maxFieldLength>
42
+ <writeLockTimeout>1000</writeLockTimeout>
43
+ <commitLockTimeout>10000</commitLockTimeout>
44
+ </indexDefaults>
45
+
46
+ <mainIndex>
47
+ <!-- options specific to the main on-disk lucene index -->
48
+ <useCompoundFile>false</useCompoundFile>
49
+ <mergeFactor>10</mergeFactor>
50
+ <maxBufferedDocs>1000</maxBufferedDocs>
51
+ <maxMergeDocs>2147483647</maxMergeDocs>
52
+ <maxFieldLength>10000</maxFieldLength>
53
+
54
+ <!-- If true, unlock any held write or commit locks on startup.
55
+ This defeats the locking mechanism that allows multiple
56
+ processes to safely access a lucene index, and should be
57
+ used with care. -->
58
+ <unlockOnStartup>false</unlockOnStartup>
59
+ </mainIndex>
60
+
61
+ <!-- the default high-performance update handler -->
62
+ <updateHandler class="solr.DirectUpdateHandler2">
63
+
64
+ <!-- A prefix of "solr." for class names is an alias that
65
+ causes solr to search appropriate packages, including
66
+ org.apache.solr.(search|update|request|core|analysis)
67
+ -->
68
+
69
+ <!-- autocommit pending docs if certain criteria are met
70
+ <autoCommit>
71
+ <maxDocs>10000</maxDocs>
72
+ <maxTime>1000</maxTime>
73
+ </autoCommit>
74
+ -->
75
+
76
+ <!-- The RunExecutableListener executes an external command.
77
+ exe - the name of the executable to run
78
+ dir - dir to use as the current working directory. default="."
79
+ wait - the calling thread waits until the executable returns. default="true"
80
+ args - the arguments to pass to the program. default=nothing
81
+ env - environment variables to set. default=nothing
82
+ -->
83
+ <!-- A postCommit event is fired after every commit or optimize command
84
+ <listener event="postCommit" class="solr.RunExecutableListener">
85
+ <str name="exe">snapshooter</str>
86
+ <str name="dir">solr/bin</str>
87
+ <bool name="wait">true</bool>
88
+ <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
89
+ <arr name="env"> <str>MYVAR=val1</str> </arr>
90
+ </listener>
91
+ -->
92
+ <!-- A postOptimize event is fired only after every optimize command, useful
93
+ in conjunction with index distribution to only distribute optimized indicies
94
+ <listener event="postOptimize" class="solr.RunExecutableListener">
95
+ <str name="exe">snapshooter</str>
96
+ <str name="dir">solr/bin</str>
97
+ <bool name="wait">true</bool>
98
+ </listener>
99
+ -->
100
+
101
+ </updateHandler>
102
+
103
+
104
+ <query>
105
+ <!-- Maximum number of clauses in a boolean query... can affect
106
+ range or prefix queries that expand to big boolean
107
+ queries. An exception is thrown if exceeded. -->
108
+ <maxBooleanClauses>1024</maxBooleanClauses>
109
+
110
+
111
+ <!-- Cache used by SolrIndexSearcher for filters (DocSets),
112
+ unordered sets of *all* documents that match a query.
113
+ When a new searcher is opened, its caches may be prepopulated
114
+ or "autowarmed" using data from caches in the old searcher.
115
+ autowarmCount is the number of items to prepopulate. For LRUCache,
116
+ the autowarmed items will be the most recently accessed items.
117
+ Parameters:
118
+ class - the SolrCache implementation (currently only LRUCache)
119
+ size - the maximum number of entries in the cache
120
+ initialSize - the initial capacity (number of entries) of
121
+ the cache. (seel java.util.HashMap)
122
+ autowarmCount - the number of entries to prepopulate from
123
+ and old cache.
124
+ -->
125
+ <filterCache
126
+ class="solr.LRUCache"
127
+ size="512"
128
+ initialSize="512"
129
+ autowarmCount="256"/>
130
+
131
+ <!-- queryResultCache caches results of searches - ordered lists of
132
+ document ids (DocList) based on a query, a sort, and the range
133
+ of documents requested. -->
134
+ <queryResultCache
135
+ class="solr.LRUCache"
136
+ size="512"
137
+ initialSize="512"
138
+ autowarmCount="256"/>
139
+
140
+ <!-- documentCache caches Lucene Document objects (the stored fields for each document).
141
+ Since Lucene internal document ids are transient, this cache will not be autowarmed. -->
142
+ <documentCache
143
+ class="solr.LRUCache"
144
+ size="512"
145
+ initialSize="512"
146
+ autowarmCount="0"/>
147
+
148
+ <!-- If true, stored fields that are not requested will be loaded lazily.
149
+
150
+ This can result in a significant speed improvement if the usual case is to
151
+ not load all stored fields, especially if the skipped fields are large compressed
152
+ text fields.
153
+ -->
154
+ <enableLazyFieldLoading>true</enableLazyFieldLoading>
155
+
156
+ <!-- Example of a generic cache. These caches may be accessed by name
157
+ through SolrIndexSearcher.getCache(),cacheLookup(), and cacheInsert().
158
+ The purpose is to enable easy caching of user/application level data.
159
+ The regenerator argument should be specified as an implementation
160
+ of solr.search.CacheRegenerator if autowarming is desired. -->
161
+ <!--
162
+ <cache name="myUserCache"
163
+ class="solr.LRUCache"
164
+ size="4096"
165
+ initialSize="1024"
166
+ autowarmCount="1024"
167
+ regenerator="org.mycompany.mypackage.MyRegenerator"
168
+ />
169
+ -->
170
+
171
+ <!-- An optimization that attempts to use a filter to satisfy a search.
172
+ If the requested sort does not include score, then the filterCache
173
+ will be checked for a filter matching the query. If found, the filter
174
+ will be used as the source of document ids, and then the sort will be
175
+ applied to that.
176
+ <useFilterForSortedQuery>true</useFilterForSortedQuery>
177
+ -->
178
+
179
+ <!-- An optimization for use with the queryResultCache. When a search
180
+ is requested, a superset of the requested number of document ids
181
+ are collected. For example, if a search for a particular query
182
+ requests matching documents 10 through 19, and queryWindowSize is 50,
183
+ then documents 0 through 50 will be collected and cached. Any further
184
+ requests in that range can be satisfied via the cache. -->
185
+ <queryResultWindowSize>10</queryResultWindowSize>
186
+
187
+ <!-- This entry enables an int hash representation for filters (DocSets)
188
+ when the number of items in the set is less than maxSize. For smaller
189
+ sets, this representation is more memory efficient, more efficient to
190
+ iterate over, and faster to take intersections. -->
191
+ <HashDocSet maxSize="3000" loadFactor="0.75"/>
192
+
193
+
194
+ <!-- boolToFilterOptimizer converts boolean clauses with zero boost
195
+ into cached filters if the number of docs selected by the clause exceeds
196
+ the threshold (represented as a fraction of the total index) -->
197
+ <boolTofilterOptimizer enabled="true" cacheSize="32" threshold=".05"/>
198
+
199
+
200
+ <!-- a newSearcher event is fired whenever a new searcher is being prepared
201
+ and there is a current searcher handling requests (aka registered). -->
202
+ <!-- QuerySenderListener takes an array of NamedList and executes a
203
+ local query request for each NamedList in sequence. -->
204
+ <!--
205
+ <listener event="newSearcher" class="solr.QuerySenderListener">
206
+ <arr name="queries">
207
+ <lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> </lst>
208
+ <lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> </lst>
209
+ </arr>
210
+ </listener>
211
+ -->
212
+
213
+ <!-- a firstSearcher event is fired whenever a new searcher is being
214
+ prepared but there is no current registered searcher to handle
215
+ requests or to gain autowarming data from. -->
216
+ <!--
217
+ <listener event="firstSearcher" class="solr.QuerySenderListener">
218
+ <arr name="queries">
219
+ <lst> <str name="q">fast_warm</str> <str name="start">0</str> <str name="rows">10</str> </lst>
220
+ </arr>
221
+ </listener>
222
+ -->
223
+
224
+ <!-- If a search request comes in and there is no current registered searcher,
225
+ then immediately register the still warming searcher and use it. If
226
+ "false" then all requests will block until the first searcher is done
227
+ warming. -->
228
+ <useColdSearcher>false</useColdSearcher>
229
+
230
+ <!-- Maximum number of searchers that may be warming in the background
231
+ concurrently. An error is returned if this limit is exceeded. Recommend
232
+ 1-2 for read-only slaves, higher for masters w/o cache warming. -->
233
+ <maxWarmingSearchers>4</maxWarmingSearchers>
234
+
235
+ </query>
236
+
237
+ <!--
238
+ Let the dispatch filter handler /select?qt=XXX
239
+ handleSelect=true will use consistent error handling for /select and /update
240
+ handleSelect=false will use solr1.1 style error formatting
241
+ -->
242
+ <requestDispatcher handleSelect="true" >
243
+ <!--Make sure your system has some authentication before enabling remote streaming! -->
244
+ <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
245
+ </requestDispatcher>
246
+
247
+
248
+ <!-- requestHandler plugins... incoming queries will be dispatched to the
249
+ correct handler based on the qt (query type) param matching the
250
+ name of registered handlers.
251
+ The "standard" request handler is the default and will be used if qt
252
+ is not specified in the request.
253
+ -->
254
+ <requestHandler name="standard" class="solr.StandardRequestHandler">
255
+ <!-- default values for query parameters -->
256
+ <lst name="defaults">
257
+ <str name="echoParams">explicit</str>
258
+ <str name="json.nl">map</str>
259
+ <!--
260
+ <int name="rows">10</int>
261
+ <str name="fl">*</str>
262
+ <str name="version">2.1</str>
263
+ -->
264
+ </lst>
265
+ </requestHandler>
266
+
267
+ <!-- DisMaxRequestHandler allows easy searching across multiple fields
268
+ for simple user-entered phrases.
269
+ see http://wiki.apache.org/solr/DisMaxRequestHandler
270
+ -->
271
+ <requestHandler name="dismax" class="solr.DisMaxRequestHandler" >
272
+ <lst name="defaults">
273
+ <str name="echoParams">explicit</str>
274
+ <float name="tie">0.01</float>
275
+ <str name="qf">
276
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
277
+ </str>
278
+ <str name="pf">
279
+ text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
280
+ </str>
281
+ <str name="bf">
282
+ ord(poplarity)^0.5 recip(rord(price),1,1000,1000)^0.3
283
+ </str>
284
+ <str name="fl">
285
+ id,name,price,score
286
+ </str>
287
+ <str name="mm">
288
+ 2&lt;-1 5&lt;-2 6&lt;90%
289
+ </str>
290
+ <int name="ps">100</int>
291
+ <str name="q.alt">*:*</str>
292
+ </lst>
293
+ </requestHandler>
294
+
295
+ <!-- Note how you can register the same handler multiple times with
296
+ different names (and different init parameters)
297
+ -->
298
+ <requestHandler name="partitioned" class="solr.DisMaxRequestHandler" >
299
+ <lst name="defaults">
300
+ <str name="echoParams">explicit</str>
301
+ <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>
302
+ <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
303
+ <!-- This is an example of using Date Math to specify a constantly
304
+ moving date range in a config...
305
+ -->
306
+ <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>
307
+ </lst>
308
+ <!-- In addition to defaults, "appends" params can be specified
309
+ to identify values which should be appended to the list of
310
+ multi-val params from the query (or the existing "defaults").
311
+
312
+ In this example, the param "fq=instock:true" will be appended to
313
+ any query time fq params the user may specify, as a mechanism for
314
+ partitioning the index, independent of any user selected filtering
315
+ that may also be desired (perhaps as a result of faceted searching).
316
+
317
+ NOTE: there is *absolutely* nothing a client can do to prevent these
318
+ "appends" values from being used, so don't use this mechanism
319
+ unless you are sure you always want it.
320
+ -->
321
+ <lst name="appends">
322
+ <str name="fq">inStock:true</str>
323
+ </lst>
324
+ <!-- "invariants" are a way of letting the Solr maintainer lock down
325
+ the options available to Solr clients. Any params values
326
+ specified here are used regardless of what values may be specified
327
+ in either the query, the "defaults", or the "appends" params.
328
+
329
+ In this example, the facet.field and facet.query params are fixed,
330
+ limiting the facets clients can use. Faceting is not turned on by
331
+ default - but if the client does specify facet=true in the request,
332
+ these are the only facets they will be able to see counts for;
333
+ regardless of what other facet.field or facet.query params they
334
+ may specify.
335
+
336
+ NOTE: there is *absolutely* nothing a client can do to prevent these
337
+ "invariants" values from being used, so don't use this mechanism
338
+ unless you are sure you always want it.
339
+ -->
340
+ <lst name="invariants">
341
+ <str name="facet.field">cat</str>
342
+ <str name="facet.field">manu_exact</str>
343
+ <str name="facet.query">price:[* TO 500]</str>
344
+ <str name="facet.query">price:[500 TO *]</str>
345
+ </lst>
346
+ </requestHandler>
347
+
348
+ <requestHandler name="instock" class="solr.DisMaxRequestHandler" >
349
+ <!-- for legacy reasons, DisMaxRequestHandler will assume all init
350
+ params are "defaults" if you don't explicitly specify any defaults.
351
+ -->
352
+ <str name="fq">
353
+ inStock:true
354
+ </str>
355
+ <str name="qf">
356
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
357
+ </str>
358
+ <str name="mm">
359
+ 2&lt;-1 5&lt;-2 6&lt;90%
360
+ </str>
361
+ </requestHandler>
362
+
363
+
364
+ <!-- SpellCheckerRequestHandler takes in a word (or several words) as the
365
+ value of the "q" parameter and returns a list of alternative spelling
366
+ suggestions. If invoked with a ...&cmd=rebuild, it will rebuild the
367
+ spellchecker index.
368
+ -->
369
+ <requestHandler name="spellchecker" class="solr.SpellCheckerRequestHandler" startup="lazy">
370
+ <!-- default values for query parameters -->
371
+ <lst name="defaults">
372
+ <int name="suggestionCount">1</int>
373
+ <float name="accuracy">0.5</float>
374
+ </lst>
375
+
376
+ <!-- Main init params for handler -->
377
+
378
+ <!-- The directory where your SpellChecker Index should live. -->
379
+ <!-- May be absolute, or relative to the Solr "dataDir" directory. -->
380
+ <!-- If this option is not specified, a RAM directory will be used -->
381
+ <str name="spellcheckerIndexDir">spell</str>
382
+
383
+ <!-- the field in your schema that you want to be able to build -->
384
+ <!-- your spell index on. This should be a field that uses a very -->
385
+ <!-- simple FieldType without a lot of Analysis (ie: string) -->
386
+ <str name="termSourceField">word</str>
387
+
388
+ </requestHandler>
389
+
390
+
391
+ <!-- Update request handler.
392
+
393
+ Note: Since solr1.1 requestHandlers requires a valid content type header if posted in
394
+ the body. For example, curl now requires: -H 'Content-type:text/xml; charset=utf-8'
395
+ The response format differs from solr1.1 formatting and returns a standard error code.
396
+
397
+ To enable solr1.1 behavior, remove the /update handler or change its path
398
+ -->
399
+ <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />
400
+
401
+ <!-- CSV update handler, loaded on demand -->
402
+ <requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy" />
403
+
404
+
405
+ <!-- Admin Handlers. TODO? There could be a single handler that loads them all... -->
406
+ <requestHandler name="/admin/luke" class="org.apache.solr.handler.admin.LukeRequestHandler" />
407
+ <requestHandler name="/admin/system" class="org.apache.solr.handler.admin.SystemInfoHandler" />
408
+ <requestHandler name="/admin/plugins" class="org.apache.solr.handler.admin.PluginInfoHandler" />
409
+ <requestHandler name="/admin/threads" class="org.apache.solr.handler.admin.ThreadDumpHandler" />
410
+ <requestHandler name="/admin/properties" class="org.apache.solr.handler.admin.PropertiesRequestHandler" />
411
+
412
+ <!-- Echo the request contents back to the client -->
413
+ <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
414
+ <lst name="defaults">
415
+ <str name="echoParams">explicit</str> <!-- for all params (including the default etc) use: 'all' -->
416
+ <str name="echoHandler">true</str>
417
+ </lst>
418
+ </requestHandler>
419
+
420
+ <!-- queryResponseWriter plugins... query responses will be written using the
421
+ writer specified by the 'wt' request parameter matching the name of a registered
422
+ writer.
423
+ The "standard" writer is the default and will be used if 'wt' is not specified
424
+ in the request. XMLResponseWriter will be used if nothing is specified here.
425
+ The json, python, and ruby writers are also available by default.
426
+
427
+ <queryResponseWriter name="standard" class="org.apache.solr.request.XMLResponseWriter"/>
428
+ <queryResponseWriter name="json" class="org.apache.solr.request.JSONResponseWriter"/>
429
+ <queryResponseWriter name="python" class="org.apache.solr.request.PythonResponseWriter"/>
430
+ <queryResponseWriter name="ruby" class="org.apache.solr.request.RubyResponseWriter"/>
431
+
432
+ <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
433
+ -->
434
+
435
+ <!-- XSLT response writer transforms the XML output by any xslt file found
436
+ in Solr's conf/xslt directory. Changes to xslt files are checked for
437
+ every xsltCacheLifetimeSeconds.
438
+ -->
439
+ <queryResponseWriter name="xslt" class="org.apache.solr.request.XSLTResponseWriter">
440
+ <int name="xsltCacheLifetimeSeconds">5</int>
441
+ </queryResponseWriter>
442
+
443
+ <!-- config for the admin interface -->
444
+ <admin>
445
+ <defaultQuery>solr</defaultQuery>
446
+ <gettableFiles>solrconfig.xml schema.xml admin-extra.html</gettableFiles>
447
+ <!-- pingQuery should be "URLish" ...
448
+ &amp; separated key=val pairs ... but there shouldn't be any
449
+ URL escaping of the values -->
450
+ <pingQuery>
451
+ qt=standard&amp;q=solrpingquery
452
+ </pingQuery>
453
+ <!-- configure a healthcheck file for servers behind a loadbalancer
454
+ <healthcheck type="file">server-enabled</healthcheck>
455
+ -->
456
+ </admin>
457
+
458
+ </config>