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,58 @@
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
+ #-----------------------------------------------------------------------
17
+ # a couple of test stopwords to test that the words are really being
18
+ # configured from this file:
19
+ stopworda
20
+ stopwordb
21
+
22
+ #Standard english stop words taken from Lucene's StopAnalyzer
23
+ a
24
+ an
25
+ and
26
+ are
27
+ as
28
+ at
29
+ be
30
+ but
31
+ by
32
+ for
33
+ if
34
+ in
35
+ into
36
+ is
37
+ it
38
+ no
39
+ not
40
+ of
41
+ on
42
+ or
43
+ s
44
+ such
45
+ t
46
+ that
47
+ the
48
+ their
49
+ then
50
+ there
51
+ these
52
+ they
53
+ this
54
+ to
55
+ was
56
+ will
57
+ with
58
+
@@ -0,0 +1,31 @@
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
+ #some test synonym mappings unlikely to appear in real input text
15
+ aaa => aaaa
16
+ bbb => bbbb1 bbbb2
17
+ ccc => cccc1,cccc2
18
+ a\=>a => b\=>b
19
+ a\,a => b\,b
20
+ fooaaa,baraaa,bazaaa
21
+
22
+ # Some synonym groups specific to this example
23
+ GB,gib,gigabyte,gigabytes
24
+ MB,mib,megabyte,megabytes
25
+ Television, Televisions, TV, TVs
26
+ #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
27
+ #after us won't split it into two words.
28
+
29
+ # Synonym mappings can be used for spelling correction too
30
+ pixima => pixma
31
+
@@ -0,0 +1,31 @@
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+
18
+ <!-- The content of this page will be statically included into the top
19
+ of the admin page. Uncomment this as an example to see there the content
20
+ will show up.
21
+
22
+ <hr>
23
+ <i>This line will appear before the first table</i>
24
+ <tr>
25
+ <td colspan="2">
26
+ This row will be appended to the end of the first table
27
+ </td>
28
+ </tr>
29
+ <hr>
30
+
31
+ -->
@@ -0,0 +1,36 @@
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
+ <!-- If this file is found in the config directory, it will only be
20
+ loaded once at startup. If it is found in Solr's data
21
+ directory, it will be re-loaded every commit.
22
+ -->
23
+
24
+ <elevate>
25
+ <query text="foo bar">
26
+ <doc id="1" />
27
+ <doc id="2" />
28
+ <doc id="3" />
29
+ </query>
30
+
31
+ <query text="ipod">
32
+ <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
33
+ <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
34
+ </query>
35
+
36
+ </elevate>
@@ -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,26 @@
1
+ <dataConfig>
2
+ <dataSource type="HttpDataSource" />
3
+ <document>
4
+ <entity name="slashdot"
5
+ pk="link"
6
+ url="http://rss.slashdot.org/Slashdot/slashdot"
7
+ processor="XPathEntityProcessor"
8
+ forEach="/RDF/channel | /RDF/item"
9
+ transformer="DateFormatTransformer">
10
+
11
+ <field column="source" xpath="/RDF/channel/title" commonField="true" />
12
+ <field column="source-link" xpath="/RDF/channel/link" commonField="true" />
13
+ <field column="subject" xpath="/RDF/channel/subject" commonField="true" />
14
+
15
+ <field column="title" xpath="/RDF/item/title" />
16
+ <field column="link" xpath="/RDF/item/link" />
17
+ <field column="description" xpath="/RDF/item/description" />
18
+ <field column="creator" xpath="/RDF/item/creator" />
19
+ <field column="item-subject" xpath="/RDF/item/subject" />
20
+ <field column="date" xpath="/RDF/item/date" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss" />
21
+ <field column="slash-department" xpath="/RDF/item/department" />
22
+ <field column="slash-section" xpath="/RDF/item/section" />
23
+ <field column="slash-comments" xpath="/RDF/item/comments" />
24
+ </entity>
25
+ </document>
26
+ </dataConfig>
@@ -0,0 +1,316 @@
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="rss" version="1.1">
33
+ <!-- attribute "name" is the name of this schema and is only used for display purposes.
34
+ Applications should change this to reflect the nature of the search collection.
35
+ version="1.1" is Solr's version number for the schema syntax and semantics. It should
36
+ not normally be changed by applications.
37
+ 1.0: multiValued attribute did not exist, all fields are multiValued by nature
38
+ 1.1: multiValued attribute introduced, false by default -->
39
+
40
+ <types>
41
+ <!-- field type definitions. The "name" attribute is
42
+ just a label to be used by field definitions. The "class"
43
+ attribute and any other attributes determine the real
44
+ behavior of the fieldType.
45
+ Class names starting with "solr" refer to java classes in the
46
+ org.apache.solr.analysis package.
47
+ -->
48
+
49
+ <!-- The StrField type is not analyzed, but indexed/stored verbatim.
50
+ - StrField and TextField support an optional compressThreshold which
51
+ limits compression (if enabled in the derived fields) to values which
52
+ exceed a certain size (in characters).
53
+ -->
54
+ <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
55
+
56
+ <!-- boolean type: "true" or "false" -->
57
+ <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>
58
+
59
+ <!-- The optional sortMissingLast and sortMissingFirst attributes are
60
+ currently supported on types that are sorted internally as strings.
61
+ - If sortMissingLast="true", then a sort on this field will cause documents
62
+ without the field to come after documents with the field,
63
+ regardless of the requested sort order (asc or desc).
64
+ - If sortMissingFirst="true", then a sort on this field will cause documents
65
+ without the field to come before documents with the field,
66
+ regardless of the requested sort order.
67
+ - If sortMissingLast="false" and sortMissingFirst="false" (the default),
68
+ then default lucene sorting will be used which places docs without the
69
+ field first in an ascending sort and last in a descending sort.
70
+ -->
71
+
72
+
73
+ <!-- numeric field types that store and index the text
74
+ value verbatim (and hence don't support range queries, since the
75
+ lexicographic ordering isn't equal to the numeric ordering) -->
76
+ <fieldType name="integer" class="solr.IntField" omitNorms="true"/>
77
+ <fieldType name="long" class="solr.LongField" omitNorms="true"/>
78
+ <fieldType name="float" class="solr.FloatField" omitNorms="true"/>
79
+ <fieldType name="double" class="solr.DoubleField" omitNorms="true"/>
80
+
81
+
82
+ <!-- Numeric field types that manipulate the value into
83
+ a string value that isn't human-readable in its internal form,
84
+ but with a lexicographic ordering the same as the numeric ordering,
85
+ so that range queries work correctly. -->
86
+ <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
87
+ <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>
88
+ <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/>
89
+ <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>
90
+
91
+
92
+ <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
93
+ is a more restricted form of the canonical representation of dateTime
94
+ http://www.w3.org/TR/xmlschema-2/#dateTime
95
+ The trailing "Z" designates UTC time and is mandatory.
96
+ Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
97
+ All other components are mandatory.
98
+
99
+ Expressions can also be used to denote calculations that should be
100
+ performed relative to "NOW" to determine the value, ie...
101
+
102
+ NOW/HOUR
103
+ ... Round to the start of the current hour
104
+ NOW-1DAY
105
+ ... Exactly 1 day prior to now
106
+ NOW/DAY+6MONTHS+3DAYS
107
+ ... 6 months and 3 days in the future from the start of
108
+ the current day
109
+
110
+ Consult the DateField javadocs for more information.
111
+ -->
112
+ <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true"/>
113
+
114
+
115
+ <!-- The "RandomSortField" is not used to store or search any
116
+ data. You can declare fields of this type it in your schema
117
+ to generate psuedo-random orderings of your docs for sorting
118
+ purposes. The ordering is generated based on the field name
119
+ and the version of the index, As long as the index version
120
+ remains unchanged, and the same field name is reused,
121
+ the ordering of the docs will be consistent.
122
+ If you want differend psuedo-random orderings of documents,
123
+ for the same version of the index, use a dynamicField and
124
+ change the name
125
+ -->
126
+ <fieldType name="random" class="solr.RandomSortField" indexed="true" />
127
+
128
+ <!-- solr.TextField allows the specification of custom text analyzers
129
+ specified as a tokenizer and a list of token filters. Different
130
+ analyzers may be specified for indexing and querying.
131
+
132
+ The optional positionIncrementGap puts space between multiple fields of
133
+ this type on the same document, with the purpose of preventing false phrase
134
+ matching across fields.
135
+
136
+ For more info on customizing your analyzer chain, please see
137
+ http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
138
+ -->
139
+
140
+ <!-- One can also specify an existing Analyzer class that has a
141
+ default constructor via the class attribute on the analyzer element
142
+ <fieldType name="text_greek" class="solr.TextField">
143
+ <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>
144
+ </fieldType>
145
+ -->
146
+
147
+ <!-- A text field that only splits on whitespace for exact matching of words -->
148
+ <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
149
+ <analyzer>
150
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
151
+ </analyzer>
152
+ </fieldType>
153
+
154
+ <!-- A text field that uses WordDelimiterFilter to enable splitting and matching of
155
+ words on case-change, alpha numeric boundaries, and non-alphanumeric chars,
156
+ so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi".
157
+ Synonyms and stopwords are customized by external files, and stemming is enabled.
158
+ Duplicate tokens at the same position (which may result from Stemmed Synonyms or
159
+ WordDelim parts) are removed.
160
+ -->
161
+ <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
162
+ <analyzer type="index">
163
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
164
+ <!-- in this example, we will only use synonyms at query time
165
+ <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
166
+ -->
167
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
168
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
169
+ <filter class="solr.LowerCaseFilterFactory"/>
170
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
171
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
172
+ </analyzer>
173
+ <analyzer type="query">
174
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
175
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
176
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
177
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
178
+ <filter class="solr.LowerCaseFilterFactory"/>
179
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
180
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
181
+ </analyzer>
182
+ </fieldType>
183
+
184
+
185
+ <!-- Less flexible matching, but less false matches. Probably not ideal for product names,
186
+ but may be good for SKUs. Can insert dashes in the wrong place and still match. -->
187
+ <fieldType name="textTight" class="solr.TextField" positionIncrementGap="100" >
188
+ <analyzer>
189
+ <tokenizer class="solr.WhitespaceTokenizerFactory"/>
190
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
191
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
192
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
193
+ <filter class="solr.LowerCaseFilterFactory"/>
194
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
195
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
196
+ </analyzer>
197
+ </fieldType>
198
+
199
+ <!-- This is an example of using the KeywordTokenizer along
200
+ With various TokenFilterFactories to produce a sortable field
201
+ that does not include some properties of the source text
202
+ -->
203
+ <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
204
+ <analyzer>
205
+ <!-- KeywordTokenizer does no actual tokenizing, so the entire
206
+ input string is preserved as a single token
207
+ -->
208
+ <tokenizer class="solr.KeywordTokenizerFactory"/>
209
+ <!-- The LowerCase TokenFilter does what you expect, which can be
210
+ when you want your sorting to be case insensitive
211
+ -->
212
+ <filter class="solr.LowerCaseFilterFactory" />
213
+ <!-- The TrimFilter removes any leading or trailing whitespace -->
214
+ <filter class="solr.TrimFilterFactory" />
215
+ <!-- The PatternReplaceFilter gives you the flexibility to use
216
+ Java Regular expression to replace any sequence of characters
217
+ matching a pattern with an arbitrary replacement string,
218
+ which may include back refrences to portions of the orriginal
219
+ string matched by the pattern.
220
+
221
+ See the Java Regular Expression documentation for more
222
+ infomation on pattern and replacement string syntax.
223
+
224
+ http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html
225
+ -->
226
+ <filter class="solr.PatternReplaceFilterFactory"
227
+ pattern="([^a-z])" replacement="" replace="all"
228
+ />
229
+ </analyzer>
230
+ </fieldType>
231
+
232
+ <!-- since fields of this type are by default not stored or indexed, any data added to
233
+ them will be ignored outright
234
+ -->
235
+ <fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" />
236
+
237
+ <fieldtype name="html" stored="true" indexed="true" class="solr.TextField">
238
+ <analyzer type="index">
239
+ <tokenizer class="solr.HTMLStripStandardTokenizerFactory"/>
240
+ <!-- in this example, we will only use synonyms at query time
241
+ <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
242
+ -->
243
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
244
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
245
+ <filter class="solr.LowerCaseFilterFactory"/>
246
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
247
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
248
+ </analyzer>
249
+ <analyzer type="query">
250
+ <tokenizer class="solr.HTMLStripStandardTokenizerFactory"/>
251
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
252
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
253
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
254
+ <filter class="solr.LowerCaseFilterFactory"/>
255
+ <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
256
+ <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
257
+ </analyzer>
258
+ </fieldtype>
259
+
260
+ </types>
261
+
262
+
263
+ <fields>
264
+ <!-- Valid attributes for fields:
265
+ name: mandatory - the name for the field
266
+ type: mandatory - the name of a previously defined type from the <types> section
267
+ indexed: true if this field should be indexed (searchable or sortable)
268
+ stored: true if this field should be retrievable
269
+ compressed: [false] if this field should be stored using gzip compression
270
+ (this will only apply if the field type is compressable; among
271
+ the standard field types, only TextField and StrField are)
272
+ multiValued: true if this field may contain multiple values per document
273
+ omitNorms: (expert) set to true to omit the norms associated with
274
+ this field (this disables length normalization and index-time
275
+ boosting for the field, and saves some memory). Only full-text
276
+ fields or fields that need an index-time boost need norms.
277
+ termVectors: [false] set to true to store the term vector for a given field.
278
+ When using MoreLikeThis, fields used for similarity should be stored for
279
+ best performance.
280
+ -->
281
+
282
+ <field name="source" type="text" indexed="true" stored="true" />
283
+ <field name="source-link" type="string" indexed="false" stored="true" />
284
+
285
+ <field name="subject" type="text" indexed="true" stored="true" />
286
+ <field name="title" type="text" indexed="true" stored="true" />
287
+ <field name="link" type="string" indexed="true" stored="true" />
288
+ <field name="description" type="html" indexed="true" stored="true" />
289
+ <field name="creator" type="string" indexed="false" stored="true" />
290
+ <field name="item-subject" type="string" indexed="true" stored="false" />
291
+ <field name="date" type="date" indexed="true" stored="false" />
292
+ <field name="slash-department" type="string" indexed="true" stored="false" />
293
+ <field name="slash-section" type="string" indexed="true" stored="false" />
294
+ <field name="slash-comments" type="sint" indexed="true" stored="true" />
295
+
296
+ <field name="all_text" type="text" indexed="true" stored="false" multiValued="true" />
297
+ <copyField source="source" dest="all_text" />
298
+ <copyField source="subject" dest="all_text" />
299
+ <copyField source="title" dest="all_text" />
300
+ <copyField source="description" dest="all_text" />
301
+ <copyField source="creator" dest="all_text" />
302
+ <copyField source="item-subject" dest="all_text" />
303
+ </fields>
304
+
305
+ <!-- Field to use to determine and enforce document uniqueness.
306
+ Unless this field is marked with required="false", it will be a required field
307
+ -->
308
+ <uniqueKey>link</uniqueKey>
309
+
310
+ <!-- field for the QueryParser to use when an explicit fieldname is absent -->
311
+ <defaultSearchField>all_text</defaultSearchField>
312
+
313
+ <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
314
+ <solrQueryParser defaultOperator="OR"/>
315
+
316
+ </schema>