From 48ec319902191a5e2283727c0e519b5650a719fb Mon Sep 17 00:00:00 2001 From: Randall Floyd Date: Tue, 1 Oct 2024 15:06:55 -0400 Subject: [PATCH] Testing for Ruby 3.3 and Rails 7.2 (#300) --- .circleci/config.yml | 189 +++++++------ hydra-pcdm.gemspec | 2 +- solr/conf/_rest_managed.json | 3 + solr/conf/admin-extra.html | 31 +++ solr/conf/elevate.xml | 36 +++ solr/conf/mapping-ISOLatin1Accent.txt | 246 +++++++++++++++++ solr/conf/protwords.txt | 21 ++ solr/conf/schema.xml | 367 ++++++++++++++++++++++++++ solr/conf/scripts.conf | 24 ++ solr/conf/solrconfig.xml | 327 +++++++++++++++++++++++ solr/conf/spellings.txt | 2 + solr/conf/stopwords.txt | 58 ++++ solr/conf/stopwords_en.txt | 58 ++++ solr/conf/synonyms.txt | 31 +++ solr/conf/xslt/example.xsl | 132 +++++++++ solr/conf/xslt/example_atom.xsl | 67 +++++ solr/conf/xslt/example_rss.xsl | 66 +++++ solr/conf/xslt/luke.xsl | 337 +++++++++++++++++++++++ 18 files changed, 1916 insertions(+), 81 deletions(-) create mode 100644 solr/conf/_rest_managed.json create mode 100644 solr/conf/admin-extra.html create mode 100644 solr/conf/elevate.xml create mode 100644 solr/conf/mapping-ISOLatin1Accent.txt create mode 100644 solr/conf/protwords.txt create mode 100644 solr/conf/schema.xml create mode 100644 solr/conf/scripts.conf create mode 100644 solr/conf/solrconfig.xml create mode 100644 solr/conf/spellings.txt create mode 100644 solr/conf/stopwords.txt create mode 100644 solr/conf/stopwords_en.txt create mode 100644 solr/conf/synonyms.txt create mode 100644 solr/conf/xslt/example.xsl create mode 100644 solr/conf/xslt/example_atom.xsl create mode 100644 solr/conf/xslt/example_rss.xsl create mode 100644 solr/conf/xslt/luke.xsl diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f011914..d201191a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,10 +14,42 @@ jobs: bundler_version: type: string default: 2.3.10 - executor: - name: 'samvera/ruby_fcrepo_solr_redis_postgres' - ruby_version: << parameters.ruby_version >> + solr_config_path: + type: string + default: solr/conf + ruby_type: + type: string + default: 'ruby' + solr_port: + type: string + default: '8985' + fcrepo_version: + type: string + default: "4.7.5" + solr_version: + type: string + default: "9" + docker: + - image: cimg/<< parameters.ruby_type >>:<< parameters.ruby_version >>-browsers + - image: samvera/fcrepo4:<< parameters.fcrepo_version >> + environment: + CATALINA_OPTS: "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC" + - image: zookeeper:3.9 + environment: + ZOO_ADMINSERVER_ENABLED: false + - image: solr:<< parameters.solr_version >> + environment: + VERBOSE: yes + SECURITY_JSON: '{"authentication":{"blockUnknown": false, "class":"solr.BasicAuthPlugin", "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}, "realm":"My Solr users", "forwardCredentials": false}, "authorization":{ "class":"solr.RuleBasedAuthorizationPlugin", "permissions":[{"name":"security-edit", "role":"admin"}], "user-role":{"solr":"admin"}}}' + command: sh -c "server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:2181 -cmd put /security.json \"${SECURITY_JSON}\" && solr-fg -cloud -noprompt -p << parameters.solr_port >> -z localhost:2181" environment: + BUNDLE_PATH: vendor/bundle + BUNDLE_JOBS: 4 + BUNDLE_RETRY: 3 + RAILS_ENV: test + RACK_ENV: test + FCREPO_TEST_PORT: 8080 + SPEC_OPTS: --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress RAILS_VERSION: << parameters.rails_version >> steps: - samvera/cached_checkout @@ -27,7 +59,13 @@ jobs: bundler_version: << parameters.bundler_version >> project: << parameters.project >> - - samvera/install_solr_core + - run: + name: Install solr core + command: | + cd << parameters.solr_config_path >> + zip -1 -r solr_conf.zip ./* + curl -H "Content-type:application/octet-stream" --data-binary @solr_conf.zip "http://solr:SolrRocks@127.0.0.1:8985/solr/admin/configs?action=UPLOAD&name=solrconfig" + curl "http://solr:SolrRocks@127.0.0.1:8985/solr/admin/collections?action=CREATE&name=hydra-test&numShards=1&collection.configName=solrconfig" - samvera/rubocop @@ -36,54 +74,50 @@ jobs: workflows: ci: jobs: + # Ruby 3.3 releases - bundle_lint_test: - name: ruby3-2_rails7-0 - ruby_version: 3.2.0 - rails_version: 7.0.4.1 + name: ruby3-3_rails7-2 + ruby_version: 3.3.4 + rails_version: 7.2.0 - bundle_lint_test: - name: ruby3-2_rails6-1 - ruby_version: 3.2.0 - rails_version: 6.1.7.1 + name: ruby3-3_rails7-1 + ruby_version: 3.3.4 + rails_version: 7.1.3.4 - bundle_lint_test: - name: ruby3-2_rails6-0 - ruby_version: 3.2.0 - rails_version: 6.0.6.1 + name: ruby3-3_rails7-0 + ruby_version: 3.3.4 + rails_version: 7.0.8.4 - bundle_lint_test: - name: ruby3-1_rails7-0 - ruby_version: 3.1.3 - rails_version: 7.0.4.1 - - bundle_lint_test: - name: ruby3-1_rails6-1 - ruby_version: 3.1.3 - rails_version: 6.1.7.1 + name: ruby3-3_rails6-1 + ruby_version: 3.3.4 + rails_version: 6.1.7.8 + # Ruby 3.2 releases - bundle_lint_test: - name: ruby3-1_rails6-0 - ruby_version: 3.1.3 - rails_version: 6.0.6.1 + name: ruby3-2_rails7-1 + ruby_version: 3.2.5 + rails_version: 7.1.3.4 - bundle_lint_test: - name: ruby3-0_rails7-0 - ruby_version: 3.0.5 - rails_version: 7.0.4.1 - - bundle_lint_test: - name: ruby3-0_rails6-1 - ruby_version: 3.0.5 - rails_version: 6.1.7.1 + name: ruby3-2_rails7-0 + ruby_version: 3.2.5 + rails_version: 7.0.8.4 - bundle_lint_test: - name: ruby3-0_rails6-0 - ruby_version: 3.0.5 - rails_version: 6.0.6.1 + name: ruby3-2_rails6-1 + ruby_version: 3.2.5 + rails_version: 6.1.7.8 + # Ruby 3.1 releases - bundle_lint_test: - name: ruby2-7_rails6-1 - ruby_version: 2.7.7 - rails_version: 6.1.7.1 + name: ruby3-1_rails7-1 + ruby_version: 3.1.6 + rails_version: 7.1.3.4 - bundle_lint_test: - name: ruby2-7_rails6-0 - ruby_version: 2.7.7 - rails_version: 6.0.6.1 + name: ruby3-1_rails7-0 + ruby_version: 3.1.6 + rails_version: 7.0.8.4 - bundle_lint_test: - name: ruby2-7_rails5-2 - ruby_version: 2.7.7 - rails_version: 5.2.8.1 + name: ruby3-1_rails6-1 + ruby_version: 3.1.6 + rails_version: 6.1.7.8 + nightly: triggers: @@ -94,51 +128,46 @@ workflows: only: - main jobs: + # Ruby 3.3 releases - bundle_lint_test: - name: ruby3-2_rails7-0 - ruby_version: 3.2.0 - rails_version: 7.0.4.1 + name: ruby3-3_rails7-2 + ruby_version: 3.3.4 + rails_version: 7.2.0 - bundle_lint_test: - name: ruby3-2_rails6-1 - ruby_version: 3.2.0 - rails_version: 6.1.7.1 + name: ruby3-3_rails7-1 + ruby_version: 3.3.4 + rails_version: 7.1.3.4 - bundle_lint_test: - name: ruby3-2_rails6-0 - ruby_version: 3.2.0 - rails_version: 6.0.6.1 + name: ruby3-3_rails7-0 + ruby_version: 3.3.4 + rails_version: 7.0.8.4 - bundle_lint_test: - name: ruby3-1_rails7-0 - ruby_version: 3.1.3 - rails_version: 7.0.4.1 + name: ruby3-3_rails6-1 + ruby_version: 3.3.4 + rails_version: 6.1.7.8 + # Ruby 3.2 releases - bundle_lint_test: - name: ruby3-1_rails6-1 - ruby_version: 3.1.3 - rails_version: 6.1.7.1 + name: ruby3-2_rails7-1 + ruby_version: 3.2.5 + rails_version: 7.1.3.4 - bundle_lint_test: - name: ruby3-1_rails6-0 - ruby_version: 3.1.3 - rails_version: 6.0.6.1 - - bundle_lint_test: - name: ruby3-0_rails7-0 - ruby_version: 3.0.5 - rails_version: 7.0.4.1 - - bundle_lint_test: - name: ruby3-0_rails6-1 - ruby_version: 3.0.5 - rails_version: 6.1.7.1 + name: ruby3-2_rails7-0 + ruby_version: 3.2.5 + rails_version: 7.0.8.4 - bundle_lint_test: - name: ruby3-0_rails6-0 - ruby_version: 3.0.5 - rails_version: 6.0.6.1 + name: ruby3-2_rails6-1 + ruby_version: 3.2.5 + rails_version: 6.1.7.8 + # Ruby 3.1 releases - bundle_lint_test: - name: ruby2-7_rails6-1 - ruby_version: 2.7.7 - rails_version: 6.1.7.1 + name: ruby3-1_rails7-1 + ruby_version: 3.1.6 + rails_version: 7.1.3.4 - bundle_lint_test: - name: ruby2-7_rails6-0 - ruby_version: 2.7.7 - rails_version: 6.0.6.1 + name: ruby3-1_rails7-0 + ruby_version: 3.1.6 + rails_version: 7.0.8.4 - bundle_lint_test: - name: ruby2-7_rails5-2 - ruby_version: 2.7.7 - rails_version: 5.2.8.1 + name: ruby3-1_rails6-1 + ruby_version: 3.1.6 + rails_version: 6.1.7.8 diff --git a/hydra-pcdm.gemspec b/hydra-pcdm.gemspec index f75bc0f0..13cdea30 100644 --- a/hydra-pcdm.gemspec +++ b/hydra-pcdm.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] - spec.add_dependency 'active-fedora', '>= 10', '< 15' + spec.add_dependency 'active-fedora', '>= 10' spec.add_dependency 'mime-types', '>= 1' spec.add_dependency 'rdf-vocab' diff --git a/solr/conf/_rest_managed.json b/solr/conf/_rest_managed.json new file mode 100644 index 00000000..e7ada3f6 --- /dev/null +++ b/solr/conf/_rest_managed.json @@ -0,0 +1,3 @@ +{ + "initArgs":{}, + "managedList":[]} \ No newline at end of file diff --git a/solr/conf/admin-extra.html b/solr/conf/admin-extra.html new file mode 100644 index 00000000..21b50901 --- /dev/null +++ b/solr/conf/admin-extra.html @@ -0,0 +1,31 @@ + + + diff --git a/solr/conf/elevate.xml b/solr/conf/elevate.xml new file mode 100644 index 00000000..b91e75ce --- /dev/null +++ b/solr/conf/elevate.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/solr/conf/mapping-ISOLatin1Accent.txt b/solr/conf/mapping-ISOLatin1Accent.txt new file mode 100644 index 00000000..186ca313 --- /dev/null +++ b/solr/conf/mapping-ISOLatin1Accent.txt @@ -0,0 +1,246 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Syntax: +# "source" => "target" +# "source".length() > 0 (source cannot be empty.) +# "target".length() >= 0 (target can be empty.) + +# example: +# "??" => "A" +# "\u00C0" => "A" +# "\u00C0" => "\u0041" +# "??" => "ss" +# "\t" => " " +# "\n" => "" + +# ?? => A +"\u00C0" => "A" + +# ?? => A +"\u00C1" => "A" + +# ?? => A +"\u00C2" => "A" + +# ?? => A +"\u00C3" => "A" + +# ?? => A +"\u00C4" => "A" + +# ?? => A +"\u00C5" => "A" + +# ?? => AE +"\u00C6" => "AE" + +# ?? => C +"\u00C7" => "C" + +# ?? => E +"\u00C8" => "E" + +# ?? => E +"\u00C9" => "E" + +# ?? => E +"\u00CA" => "E" + +# ?? => E +"\u00CB" => "E" + +# ?? => I +"\u00CC" => "I" + +# ?? => I +"\u00CD" => "I" + +# ?? => I +"\u00CE" => "I" + +# ?? => I +"\u00CF" => "I" + +# ?? => IJ +"\u0132" => "IJ" + +# ?? => D +"\u00D0" => "D" + +# ?? => N +"\u00D1" => "N" + +# ?? => O +"\u00D2" => "O" + +# ?? => O +"\u00D3" => "O" + +# ?? => O +"\u00D4" => "O" + +# ?? => O +"\u00D5" => "O" + +# ?? => O +"\u00D6" => "O" + +# ?? => O +"\u00D8" => "O" + +# ?? => OE +"\u0152" => "OE" + +# ?? +"\u00DE" => "TH" + +# ?? => U +"\u00D9" => "U" + +# ?? => U +"\u00DA" => "U" + +# ?? => U +"\u00DB" => "U" + +# ?? => U +"\u00DC" => "U" + +# ?? => Y +"\u00DD" => "Y" + +# ?? => Y +"\u0178" => "Y" + +# ?? => a +"\u00E0" => "a" + +# ?? => a +"\u00E1" => "a" + +# ?? => a +"\u00E2" => "a" + +# ?? => a +"\u00E3" => "a" + +# ?? => a +"\u00E4" => "a" + +# ?? => a +"\u00E5" => "a" + +# ?? => ae +"\u00E6" => "ae" + +# ?? => c +"\u00E7" => "c" + +# ?? => e +"\u00E8" => "e" + +# ?? => e +"\u00E9" => "e" + +# ?? => e +"\u00EA" => "e" + +# ?? => e +"\u00EB" => "e" + +# ?? => i +"\u00EC" => "i" + +# ?? => i +"\u00ED" => "i" + +# ?? => i +"\u00EE" => "i" + +# ?? => i +"\u00EF" => "i" + +# ?? => ij +"\u0133" => "ij" + +# ?? => d +"\u00F0" => "d" + +# ?? => n +"\u00F1" => "n" + +# ?? => o +"\u00F2" => "o" + +# ?? => o +"\u00F3" => "o" + +# ?? => o +"\u00F4" => "o" + +# ?? => o +"\u00F5" => "o" + +# ?? => o +"\u00F6" => "o" + +# ?? => o +"\u00F8" => "o" + +# ?? => oe +"\u0153" => "oe" + +# ?? => ss +"\u00DF" => "ss" + +# ?? => th +"\u00FE" => "th" + +# ?? => u +"\u00F9" => "u" + +# ?? => u +"\u00FA" => "u" + +# ?? => u +"\u00FB" => "u" + +# ?? => u +"\u00FC" => "u" + +# ?? => y +"\u00FD" => "y" + +# ?? => y +"\u00FF" => "y" + +# ??? => ff +"\uFB00" => "ff" + +# ??? => fi +"\uFB01" => "fi" + +# ??? => fl +"\uFB02" => "fl" + +# ??? => ffi +"\uFB03" => "ffi" + +# ??? => ffl +"\uFB04" => "ffl" + +# ??? => ft +"\uFB05" => "ft" + +# ??? => st +"\uFB06" => "st" diff --git a/solr/conf/protwords.txt b/solr/conf/protwords.txt new file mode 100644 index 00000000..5a32e503 --- /dev/null +++ b/solr/conf/protwords.txt @@ -0,0 +1,21 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# Use a protected word file to protect against the stemmer reducing two +# unrelated words to the same base word. + +# Some non-words that normally won't be encountered, +# just to test that they won't be stemmed. +dontstems +zwhacky + diff --git a/solr/conf/schema.xml b/solr/conf/schema.xml new file mode 100644 index 00000000..19697ecd --- /dev/null +++ b/solr/conf/schema.xml @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + + + diff --git a/solr/conf/scripts.conf b/solr/conf/scripts.conf new file mode 100644 index 00000000..f58b262a --- /dev/null +++ b/solr/conf/scripts.conf @@ -0,0 +1,24 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +user= +solr_hostname=localhost +solr_port=8983 +rsyncd_port=18983 +data_dir= +webapp_name=solr +master_host= +master_data_dir= +master_status_dir= diff --git a/solr/conf/solrconfig.xml b/solr/conf/solrconfig.xml new file mode 100644 index 00000000..fc13bc20 --- /dev/null +++ b/solr/conf/solrconfig.xml @@ -0,0 +1,327 @@ + + + + + + + + 5.0.0 + + + > + + + + + + + + + + + + + + ${solr.blacklight-core.data.dir:} + + + + + + + + + + *:* + + + + + ${solr.ulog.dir:} + + + + ${solr.autoCommit.maxTime:15000} + false + + + + ${solr.autoSoftCommit.maxTime:-1} + + + + + + + + edismax + explicit + *:* + 2<-1 5<-2 6<90% + 1 + 2 + 0.01 + + + id + title_tesim + author_tesim + subject_tesim + + + all_text_timv^10 + + + + author_tesim + + + + + title_tesim + + + + + subject_tesim + + + + + + *, + score + + + true + 1 + + true + default + true + true + false + 5 + + + + spellcheck + + + + + + off + all + 1 + {!raw f=id v=$id} + + id, + access_ssim, + discover_access_group_ssim,discover_access_person_ssim, + read_access_group_ssim,read_access_person_ssim, + edit_access_group_ssim,edit_access_person_ssim, + depositor_ti, + embargo_release_date_dtsi + inheritable_access_ssim, + inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim, + inheritable_read_access_group_ssim,inheritable_read_access_person_ssim, + inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim, + inheritable_embargo_release_date_dtsi + + + + + + + explicit + lucene + + + + + + + all + * + 1 + {!term f=id v=$id} + + + + + + + + true + + + termsComponent + + + + + + + textSpell + + + + + + default + spell + ./spell + true + + + author + author_spell + ./spell_author + 0.7 + true + + + subject + subject_spell + ./spell_subject + 0.7 + true + + + title + title_spell + ./spell_title + 0.7 + true + + + + + + + + + + + + + + + + + + last_modified + ignored_ + + + + + + + + + + diff --git a/solr/conf/spellings.txt b/solr/conf/spellings.txt new file mode 100644 index 00000000..765190ae --- /dev/null +++ b/solr/conf/spellings.txt @@ -0,0 +1,2 @@ +pizza +history diff --git a/solr/conf/stopwords.txt b/solr/conf/stopwords.txt new file mode 100644 index 00000000..22f277fe --- /dev/null +++ b/solr/conf/stopwords.txt @@ -0,0 +1,58 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# a couple of test stopwords to test that the words are really being +# configured from this file: +stopworda +stopwordb + +#Standard english stop words taken from Lucene's StopAnalyzer +a +an +and +are +as +at +be +but +by +for +if +in +into +is +it +no +not +of +on +or +s +such +t +that +the +their +then +there +these +they +this +to +was +will +with + diff --git a/solr/conf/stopwords_en.txt b/solr/conf/stopwords_en.txt new file mode 100644 index 00000000..22f277fe --- /dev/null +++ b/solr/conf/stopwords_en.txt @@ -0,0 +1,58 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +# a couple of test stopwords to test that the words are really being +# configured from this file: +stopworda +stopwordb + +#Standard english stop words taken from Lucene's StopAnalyzer +a +an +and +are +as +at +be +but +by +for +if +in +into +is +it +no +not +of +on +or +s +such +t +that +the +their +then +there +these +they +this +to +was +will +with + diff --git a/solr/conf/synonyms.txt b/solr/conf/synonyms.txt new file mode 100644 index 00000000..453eb313 --- /dev/null +++ b/solr/conf/synonyms.txt @@ -0,0 +1,31 @@ +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#----------------------------------------------------------------------- +#some test synonym mappings unlikely to appear in real input text +aaa => aaaa +bbb => bbbb1 bbbb2 +ccc => cccc1,cccc2 +a\=>a => b\=>b +a\,a => b\,b +fooaaa,baraaa,bazaaa + +# Some synonym groups specific to this example +GB,gib,gigabyte,gigabytes +MB,mib,megabyte,megabytes +Television, Televisions, TV, TVs +#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming +#after us won't split it into two words. + +# Synonym mappings can be used for spelling correction too +pixima => pixma + diff --git a/solr/conf/xslt/example.xsl b/solr/conf/xslt/example.xsl new file mode 100644 index 00000000..ff7cae74 --- /dev/null +++ b/solr/conf/xslt/example.xsl @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + <xsl:value-of select="$title"/> + + + +

+
+ This has been formatted by the sample "example.xsl" transform - + use your own XSLT to get a nicer page +
+ + + +
+ + + +
+ + + + +
+
+
+ + + + + + + + + + + + + + javascript:toggle("");? +
+ + exp + + + + + +
+ + +
+ + + + + + + +
    + +
  • +
    +
+ + +
+ + + + + + + + + + + + + + + + + + + + +
diff --git a/solr/conf/xslt/example_atom.xsl b/solr/conf/xslt/example_atom.xsl new file mode 100644 index 00000000..dbc7afa3 --- /dev/null +++ b/solr/conf/xslt/example_atom.xsl @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + Example Solr Atom 1.0 Feed + + This has been formatted by the sample "example_atom.xsl" transform - + use your own XSLT to get a nicer Atom feed. + + + Apache Solr + solr-user@lucene.apache.org + + + + + + tag:localhost,2007:example + + + + + + + + + <xsl:value-of select="str[@name='name']"/> + + tag:localhost,2007: + + + + + + diff --git a/solr/conf/xslt/example_rss.xsl b/solr/conf/xslt/example_rss.xsl new file mode 100644 index 00000000..b5bd0cf9 --- /dev/null +++ b/solr/conf/xslt/example_rss.xsl @@ -0,0 +1,66 @@ + + + + + + + + + + + + + Example Solr RSS 2.0 Feed + http://localhost:8983/solr + + This has been formatted by the sample "example_rss.xsl" transform - + use your own XSLT to get a nicer RSS feed. + + en-us + http://localhost:8983/solr + + + + + + + + + + + <xsl:value-of select="str[@name='name']"/> + + http://localhost:8983/solr/select?q=id: + + + + + + + http://localhost:8983/solr/select?q=id: + + + + diff --git a/solr/conf/xslt/luke.xsl b/solr/conf/xslt/luke.xsl new file mode 100644 index 00000000..d3f71c6d --- /dev/null +++ b/solr/conf/xslt/luke.xsl @@ -0,0 +1,337 @@ + + + + + + + + + Solr Luke Request Handler Response + + + + + + + + + <xsl:value-of select="$title"/> + + + + + +

+ +

+
+ +
+ +

Index Statistics

+ +
+ +

Field Statistics

+ + + +

Document statistics

+ + + + +
+ + + + + +
+ +
+ + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+

+ +

+ +
+ +
+
+
+ + +
+ + 50 + 800 + 160 + blue + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ background-color: ; width: px; height: px; +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
  • + +
  • +
    +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + + + + + + + + + + + + + + + + +