Skip to content

Commit

Permalink
Merge pull request #75 from avalonmediasystem/avalon_7.7
Browse files Browse the repository at this point in the history
Use latest stock solr 9 for Avalon 7.7 release
  • Loading branch information
cjcolvar authored Mar 11, 2024
2 parents 6236014 + 516f59a commit 1449be0
Show file tree
Hide file tree
Showing 22 changed files with 1,805 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.env
.DS_Store
masterfiles/*
solr_data/*
.*.swp
.*.swo
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The project contains the Dockerfiles for all the necessary components of [Avalon
1. Clone this Repo
2. Copy dotenv.example to .env and fill in the passwords and Rails secret key base.
3. From inside the avalon-docker directory
* `sudo chmod a+w masterfiles` to setup write permission for shared directory
* `sudo chmod a+w masterfiles solr_data` to setup write permissions for shared directories
* `docker-compose pull` to get the prebuilt images from [Dockerhub](dockerhub.com)
* `docker-compose up` to stand up the stack
4. Create a user account by visiting http://localhost/users/sign_up in your browser.
Expand Down
12 changes: 4 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ services:
volumes:
- fedora:/data
solr:
image: avalonmediasystem/solr:latest
build:
context: ./solr
args:
- AVALON_BRANCH
image: solr:9
volumes:
- solr:/opt/solr/server/solr/mycores
entrypoint:
- docker-entrypoint.sh
- ./solr/conf:/opt/solr/avalon_conf
- ./solr_data:/var/solr
command:
- solr-precreate
- avalon
- /opt/solr/avalon_conf
Expand Down
5 changes: 0 additions & 5 deletions solr/Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions solr/conf/_rest_managed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"initArgs":{},
"managedList":[]}
31 changes: 31 additions & 0 deletions solr/conf/admin-extra.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
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.
-->

<!-- The content of this page will be statically included into the top
of the admin page. Uncomment this as an example to see there the content
will show up.
<hr>
<i>This line will appear before the first table</i>
<tr>
<td colspan="2">
This row will be appended to the end of the first table
</td>
</tr>
<hr>
-->
36 changes: 36 additions & 0 deletions solr/conf/elevate.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
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.
-->

<!-- If this file is found in the config directory, it will only be
loaded once at startup. If it is found in Solr's data
directory, it will be re-loaded every commit.
-->

<elevate>
<query text="foo bar">
<doc id="1" />
<doc id="2" />
<doc id="3" />
</query>

<query text="ipod">
<doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
<doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
</query>

</elevate>
246 changes: 246 additions & 0 deletions solr/conf/mapping-ISOLatin1Accent.txt
Original file line number Diff line number Diff line change
@@ -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"
21 changes: 21 additions & 0 deletions solr/conf/protwords.txt
Original file line number Diff line number Diff line change
@@ -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

Loading

0 comments on commit 1449be0

Please sign in to comment.