acts_as_solr_reloaded 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/README.markdown +1 -1
  2. data/README.rdoc +3 -11
  3. data/VERSION +1 -1
  4. data/lib/acts_as_solr.rb +3 -1
  5. data/lib/solr/connection.rb +6 -3
  6. data/test/db/test.db +0 -0
  7. metadata +2 -74
  8. data/solr/README.txt +0 -36
  9. data/solr/etc/jetty.xml +0 -212
  10. data/solr/etc/webdefault.xml +0 -379
  11. data/solr/exampledocs/books.csv +0 -11
  12. data/solr/exampledocs/hd.xml +0 -46
  13. data/solr/exampledocs/ipod_other.xml +0 -50
  14. data/solr/exampledocs/ipod_video.xml +0 -35
  15. data/solr/exampledocs/locales.xml +0 -16
  16. data/solr/exampledocs/mem.xml +0 -58
  17. data/solr/exampledocs/monitor.xml +0 -31
  18. data/solr/exampledocs/monitor2.xml +0 -30
  19. data/solr/exampledocs/mp500.xml +0 -39
  20. data/solr/exampledocs/post.jar +0 -0
  21. data/solr/exampledocs/post.sh +0 -28
  22. data/solr/exampledocs/sd500.xml +0 -33
  23. data/solr/exampledocs/solr.xml +0 -38
  24. data/solr/exampledocs/spellchecker.xml +0 -58
  25. data/solr/exampledocs/test_utf8.sh +0 -83
  26. data/solr/exampledocs/utf8-example.xml +0 -42
  27. data/solr/exampledocs/vidcard.xml +0 -52
  28. data/solr/lib/jetty-6.1.3.jar +0 -0
  29. data/solr/lib/jetty-util-6.1.3.jar +0 -0
  30. data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
  31. data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  32. data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
  33. data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
  34. data/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
  35. data/solr/multicore/README.txt +0 -3
  36. data/solr/multicore/core0/conf/schema.xml +0 -41
  37. data/solr/multicore/core0/conf/solrconfig.xml +0 -40
  38. data/solr/multicore/core1/conf/schema.xml +0 -41
  39. data/solr/multicore/core1/conf/solrconfig.xml +0 -40
  40. data/solr/multicore/exampledocs/ipod_other.xml +0 -34
  41. data/solr/multicore/exampledocs/ipod_video.xml +0 -22
  42. data/solr/multicore/solr.xml +0 -35
  43. data/solr/solr/README.txt +0 -52
  44. data/solr/solr/bin/abc +0 -190
  45. data/solr/solr/bin/abo +0 -190
  46. data/solr/solr/bin/backup +0 -117
  47. data/solr/solr/bin/backupcleaner +0 -142
  48. data/solr/solr/bin/commit +0 -133
  49. data/solr/solr/bin/optimize +0 -134
  50. data/solr/solr/bin/readercycle +0 -129
  51. data/solr/solr/bin/rsyncd-disable +0 -77
  52. data/solr/solr/bin/rsyncd-enable +0 -76
  53. data/solr/solr/bin/rsyncd-start +0 -145
  54. data/solr/solr/bin/rsyncd-stop +0 -105
  55. data/solr/solr/bin/scripts-util +0 -99
  56. data/solr/solr/bin/snapcleaner +0 -154
  57. data/solr/solr/bin/snapinstaller +0 -198
  58. data/solr/solr/bin/snappuller +0 -269
  59. data/solr/solr/bin/snappuller-disable +0 -77
  60. data/solr/solr/bin/snappuller-enable +0 -77
  61. data/solr/solr/bin/snapshooter +0 -136
  62. data/solr/solr/conf/admin-extra.html +0 -31
  63. data/solr/solr/conf/elevate.xml +0 -36
  64. data/solr/solr/conf/mapping-ISOLatin1Accent.txt +0 -246
  65. data/solr/solr/conf/protwords.txt +0 -21
  66. data/solr/solr/conf/schema.xml +0 -132
  67. data/solr/solr/conf/scripts.conf +0 -24
  68. data/solr/solr/conf/solrconfig.xml +0 -906
  69. data/solr/solr/conf/spellings.txt +0 -2
  70. data/solr/solr/conf/stopwords.txt +0 -58
  71. data/solr/solr/conf/synonyms.txt +0 -31
  72. data/solr/solr/conf/xslt/example.xsl +0 -132
  73. data/solr/solr/conf/xslt/example_atom.xsl +0 -67
  74. data/solr/solr/conf/xslt/example_rss.xsl +0 -66
  75. data/solr/solr/conf/xslt/luke.xsl +0 -337
  76. data/solr/solr/lib/localsolr.jar +0 -0
  77. data/solr/solr/lib/lucene-spatial-2.9-dev.jar +0 -0
  78. data/solr/start.jar +0 -0
  79. data/solr/webapps/solr.war +0 -0
@@ -1,77 +0,0 @@
1
- #!/bin/bash
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
- # Shell script to disable snappuller
19
-
20
- orig_dir=$(pwd)
21
- cd ${0%/*}/..
22
- solr_root=$(pwd)
23
- cd ${orig_dir}
24
-
25
- unset user verbose debug
26
- . ${solr_root}/bin/scripts-util
27
-
28
- # set up variables
29
- prog=${0##*/}
30
- log=${solr_root}/logs/snappuller.log
31
-
32
- # define usage string
33
- USAGE="\
34
- usage: $prog [-u username] [-v]
35
- -u specify user to sudo to before running script
36
- -v increase verbosity
37
- -V output debugging info
38
- "
39
-
40
- # parse args
41
- while getopts u:vV OPTION
42
- do
43
- case $OPTION in
44
- u)
45
- user="$OPTARG"
46
- ;;
47
- v)
48
- verbose="v"
49
- ;;
50
- V)
51
- debug="V"
52
- ;;
53
- *)
54
- echo "$USAGE"
55
- exit 1
56
- esac
57
- done
58
-
59
- [[ -n $debug ]] && set -x
60
-
61
- fixUser "$@"
62
-
63
- setStartTime
64
-
65
- logMessage disabled by $oldwhoami
66
- logMessage command: $0 $@
67
- name=${solr_root}/logs/snappuller-enabled
68
-
69
- if [[ -f ${name} ]]
70
- then
71
- rm -f ${name}
72
- else
73
- logMessage snappuller not currently enabled
74
- logExit exited 1
75
- fi
76
-
77
- logExit ended 0
@@ -1,77 +0,0 @@
1
- #!/bin/bash
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
- # Shell script to enable snappuller
19
-
20
- orig_dir=$(pwd)
21
- cd ${0%/*}/..
22
- solr_root=$(pwd)
23
- cd ${orig_dir}
24
-
25
- unset user verbose debug
26
- . ${solr_root}/bin/scripts-util
27
-
28
- # set up variables
29
- prog=${0##*/}
30
- log=${solr_root}/logs/snappuller.log
31
-
32
- # define usage string
33
- USAGE="\
34
- usage: $prog [-u username] [-v]
35
- -u specify user to sudo to before running script
36
- -v increase verbosity
37
- -V output debugging info
38
- "
39
-
40
- # parse args
41
- while getopts u:vV OPTION
42
- do
43
- case $OPTION in
44
- u)
45
- user="$OPTARG"
46
- ;;
47
- v)
48
- verbose="v"
49
- ;;
50
- V)
51
- debug="V"
52
- ;;
53
- *)
54
- echo "$USAGE"
55
- exit 1
56
- esac
57
- done
58
-
59
- [[ -n $debug ]] && set -x
60
-
61
- fixUser "$@"
62
-
63
- setStartTime
64
-
65
- logMessage enabled by $oldwhoami
66
- logMessage command: $0 $@
67
- name=${solr_root}/logs/snappuller-enabled
68
-
69
- if [[ -f ${name} ]]
70
- then
71
- logMessage snappuller already currently enabled
72
- logExit exited 1
73
- else
74
- touch ${name}
75
- fi
76
-
77
- logExit ended 0
@@ -1,136 +0,0 @@
1
- #!/bin/bash
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
- # Shell script to take a snapshot of a Solr Lucene collection.
19
-
20
- orig_dir=$(pwd)
21
- cd ${0%/*}/..
22
- solr_root=$(pwd)
23
- cd ${orig_dir}
24
-
25
- unset data_dir user verbose debug
26
- . ${solr_root}/bin/scripts-util
27
-
28
- # set up variables
29
- prog=${0##*/}
30
- log=${solr_root}/logs/${prog}.log
31
-
32
- # define usage string
33
- USAGE="\
34
- usage: $prog [-d dir] [-u username] [-v]
35
- -d specify directory holding index data
36
- -u specify user to sudo to before running script
37
- -v increase verbosity
38
- -V output debugging info
39
- -c only take snapshot if different than previous
40
- "
41
-
42
- # parse args
43
- while getopts d:u:vVc OPTION
44
- do
45
- case $OPTION in
46
- d)
47
- data_dir="$OPTARG"
48
- ;;
49
- u)
50
- user="$OPTARG"
51
- ;;
52
- v)
53
- verbose="v"
54
- ;;
55
- V)
56
- debug="V"
57
- ;;
58
- c)
59
- check=1
60
- ;;
61
- *)
62
- echo "$USAGE"
63
- exit 1
64
- esac
65
- done
66
-
67
- [[ -n $debug ]] && set -x
68
-
69
- fixUser "$@"
70
-
71
- # use default value for data_dir if not specified
72
- # relative path starts at ${solr_root}
73
- if [[ -z ${data_dir} ]]
74
- then
75
- data_dir=${solr_root}/data
76
- elif [[ "`echo ${data_dir}|cut -c1`" != "/" ]]
77
- then
78
- data_dir=${solr_root}/${data_dir}
79
- fi
80
-
81
- setStartTime
82
-
83
- logMessage started by $oldwhoami
84
- logMessage command: $0 $@
85
-
86
- snap_name=snapshot.`date +"%Y%m%d%H%M%S"`
87
- name=${data_dir}/${snap_name}
88
- temp=${data_dir}/temp-${snap_name}
89
-
90
- if [[ -d ${name} ]]
91
- then
92
- logMessage snapshot directory ${name} already exists
93
- logExit aborted 1
94
- fi
95
-
96
- if [[ -d ${temp} ]]
97
- then
98
- logMessage snapshoting of ${name} in progress
99
- logExit aborted 1
100
- fi
101
-
102
- if [[ ${check} ]]
103
- then
104
- previous=`find ${data_dir} -name snapshot.\* | sort -r | head -1`
105
- if [[ -d ${previous} ]]
106
- then
107
- differences=`diff -q ${data_dir}/index ${previous} | wc -l`
108
- if [[ ${differences} -lt 1 ]]
109
- then
110
- logMessage Snap would be same as last, exiting
111
- logExit aborted 1
112
- fi
113
- fi
114
- fi
115
-
116
- # clean up after INT/TERM
117
- trap 'echo cleaning up, please wait ...;/bin/rm -rf ${name} ${temp};logExit aborted 13' INT TERM
118
-
119
- logMessage taking snapshot ${name}
120
-
121
- # take a snapshot using hard links into temporary location
122
- # then move it into place atomically
123
- if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
124
- then
125
- orig_dir=$(pwd)
126
- mkdir ${temp}
127
- cd ${data_dir}/index
128
- find . -print|cpio -pdlmu ${temp} 1>/dev/null 2>&1
129
- cd ${orig_dir}
130
- else
131
- cp -lr ${data_dir}/index ${temp}
132
- fi
133
- mv ${temp} ${name}
134
-
135
- logExit ended 0
136
-
@@ -1,31 +0,0 @@
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
- -->
@@ -1,36 +0,0 @@
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>
@@ -1,246 +0,0 @@
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
- # Syntax:
14
- # "source" => "target"
15
- # "source".length() > 0 (source cannot be empty.)
16
- # "target".length() >= 0 (target can be empty.)
17
-
18
- # example:
19
- # "À" => "A"
20
- # "\u00C0" => "A"
21
- # "\u00C0" => "\u0041"
22
- # "ß" => "ss"
23
- # "\t" => " "
24
- # "\n" => ""
25
-
26
- # À => A
27
- "\u00C0" => "A"
28
-
29
- # Á => A
30
- "\u00C1" => "A"
31
-
32
- # Â => A
33
- "\u00C2" => "A"
34
-
35
- # Ã => A
36
- "\u00C3" => "A"
37
-
38
- # Ä => A
39
- "\u00C4" => "A"
40
-
41
- # Å => A
42
- "\u00C5" => "A"
43
-
44
- # Æ => AE
45
- "\u00C6" => "AE"
46
-
47
- # Ç => C
48
- "\u00C7" => "C"
49
-
50
- # È => E
51
- "\u00C8" => "E"
52
-
53
- # É => E
54
- "\u00C9" => "E"
55
-
56
- # Ê => E
57
- "\u00CA" => "E"
58
-
59
- # Ë => E
60
- "\u00CB" => "E"
61
-
62
- # Ì => I
63
- "\u00CC" => "I"
64
-
65
- # Í => I
66
- "\u00CD" => "I"
67
-
68
- # Î => I
69
- "\u00CE" => "I"
70
-
71
- # Ï => I
72
- "\u00CF" => "I"
73
-
74
- # IJ => IJ
75
- "\u0132" => "IJ"
76
-
77
- # Ð => D
78
- "\u00D0" => "D"
79
-
80
- # Ñ => N
81
- "\u00D1" => "N"
82
-
83
- # Ò => O
84
- "\u00D2" => "O"
85
-
86
- # Ó => O
87
- "\u00D3" => "O"
88
-
89
- # Ô => O
90
- "\u00D4" => "O"
91
-
92
- # Õ => O
93
- "\u00D5" => "O"
94
-
95
- # Ö => O
96
- "\u00D6" => "O"
97
-
98
- # Ø => O
99
- "\u00D8" => "O"
100
-
101
- # Œ => OE
102
- "\u0152" => "OE"
103
-
104
- # Þ
105
- "\u00DE" => "TH"
106
-
107
- # Ù => U
108
- "\u00D9" => "U"
109
-
110
- # Ú => U
111
- "\u00DA" => "U"
112
-
113
- # Û => U
114
- "\u00DB" => "U"
115
-
116
- # Ü => U
117
- "\u00DC" => "U"
118
-
119
- # Ý => Y
120
- "\u00DD" => "Y"
121
-
122
- # Ÿ => Y
123
- "\u0178" => "Y"
124
-
125
- # à => a
126
- "\u00E0" => "a"
127
-
128
- # á => a
129
- "\u00E1" => "a"
130
-
131
- # â => a
132
- "\u00E2" => "a"
133
-
134
- # ã => a
135
- "\u00E3" => "a"
136
-
137
- # ä => a
138
- "\u00E4" => "a"
139
-
140
- # å => a
141
- "\u00E5" => "a"
142
-
143
- # æ => ae
144
- "\u00E6" => "ae"
145
-
146
- # ç => c
147
- "\u00E7" => "c"
148
-
149
- # è => e
150
- "\u00E8" => "e"
151
-
152
- # é => e
153
- "\u00E9" => "e"
154
-
155
- # ê => e
156
- "\u00EA" => "e"
157
-
158
- # ë => e
159
- "\u00EB" => "e"
160
-
161
- # ì => i
162
- "\u00EC" => "i"
163
-
164
- # í => i
165
- "\u00ED" => "i"
166
-
167
- # î => i
168
- "\u00EE" => "i"
169
-
170
- # ï => i
171
- "\u00EF" => "i"
172
-
173
- # ij => ij
174
- "\u0133" => "ij"
175
-
176
- # ð => d
177
- "\u00F0" => "d"
178
-
179
- # ñ => n
180
- "\u00F1" => "n"
181
-
182
- # ò => o
183
- "\u00F2" => "o"
184
-
185
- # ó => o
186
- "\u00F3" => "o"
187
-
188
- # ô => o
189
- "\u00F4" => "o"
190
-
191
- # õ => o
192
- "\u00F5" => "o"
193
-
194
- # ö => o
195
- "\u00F6" => "o"
196
-
197
- # ø => o
198
- "\u00F8" => "o"
199
-
200
- # œ => oe
201
- "\u0153" => "oe"
202
-
203
- # ß => ss
204
- "\u00DF" => "ss"
205
-
206
- # þ => th
207
- "\u00FE" => "th"
208
-
209
- # ù => u
210
- "\u00F9" => "u"
211
-
212
- # ú => u
213
- "\u00FA" => "u"
214
-
215
- # û => u
216
- "\u00FB" => "u"
217
-
218
- # ü => u
219
- "\u00FC" => "u"
220
-
221
- # ý => y
222
- "\u00FD" => "y"
223
-
224
- # ÿ => y
225
- "\u00FF" => "y"
226
-
227
- # ff => ff
228
- "\uFB00" => "ff"
229
-
230
- # fi => fi
231
- "\uFB01" => "fi"
232
-
233
- # fl => fl
234
- "\uFB02" => "fl"
235
-
236
- # ffi => ffi
237
- "\uFB03" => "ffi"
238
-
239
- # ffl => ffl
240
- "\uFB04" => "ffl"
241
-
242
- # ſt => ft
243
- "\uFB05" => "ft"
244
-
245
- # st => st
246
- "\uFB06" => "st"