Skip to content

Commit

Permalink
Merge pull request #310 from charvolant/master
Browse files Browse the repository at this point in the history
Release 1.4.12
  • Loading branch information
charvolant authored Feb 19, 2021
2 parents 4c24898 + 1f42bd0 commit ac16d95
Show file tree
Hide file tree
Showing 34 changed files with 3,291 additions and 341 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bie-index [![Build Status](https://travis-ci.org/AtlasOfLivingAustralia/bie-index.svg?branch=master)](https://travis-ci.org/AtlasOfLivingAustralia/bie-index)
# bie-index [![Build Status](https://travis-ci.com/AtlasOfLivingAustralia/bie-index.svg?branch=master)](https://travis-ci.com/AtlasOfLivingAustralia/bie-index)

bie-index is a grails web application that indexes taxonomic content in DwC-A and provides search web services for this content.
This includes:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
}
}

version "1.4.11"
version "1.4.12"
group "au.org.ala"

apply plugin:"eclipse"
Expand Down Expand Up @@ -76,7 +76,7 @@ dependencies {
compile(group: 'org.grails.plugins', name: 'ala-auth', version:'3.1.0') {
exclude group: 'javax.servlet', module: 'servlet-api'
}
compile group: 'org.grails.plugins', name: 'ala-admin-plugin', version: '2.2'
compile group: 'org.grails.plugins', name: 'ala-admin-plugin', version: '2.1'
compile "org.grails.plugins:grails-spring-websocket:2.3.0"
compile 'org.webjars:swagger-ui:3.18.2'

Expand Down
22 changes: 22 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Docker Images

Subdirectories contain docker descriptions that can be used for testing and
debugging

## Solr

The solr image contains a solr server with pre-configred `bie` and `bie-offline` cores.
To build a solr6 image for use with the bie-index run, from this directory

```shell
docker build solr6 -t bie-solr:v1
```

To run the resulting image in a fresh container, use

```shell
docker run -p 8983:8983 bie-solr:v1
```

Set the solr connections in the configuration to
`http://localhost:8983/solr/bie` and `http://localhost:8983/solr/bie-offline`
15 changes: 15 additions & 0 deletions docker/solr6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM solr:6.6
WORKDIR /opt/solr/server/solr
COPY --chown=solr:solr solr.xml solr.xml
COPY --chown=solr:solr zoo.cfg zoo.cfg
#COPY --chown=solr:solr lib /opt/solr/server/solr-webapp/webapp/WEB-INF/lib/
RUN mkdir -p bie bie/conf bie/data bie/suggest-infix
COPY --chown=solr:solr conf bie/conf
COPY --chown=solr:solr bie.core.properties bie/core.properties
RUN chown -R solr.solr bie
RUN mkdir -p bie-offline bie-offline/conf bie-offline/data bie-offline/suggest-infix
COPY --chown=solr:solr conf bie-offline/conf
COPY --chown=solr:solr bie-offline.core.properties bie-offline/core.properties
RUN chown -R solr.solr bie-offline
COPY solr.in.sh /etc/default/solr.in.sh

3 changes: 3 additions & 0 deletions docker/solr6/bie-offline.core.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config=solrconfig.xml
name=bie-offline
dataDir=data
3 changes: 3 additions & 0 deletions docker/solr6/bie.core.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config=solrconfig.xml
name=bie
dataDir=data
Empty file.
36 changes: 36 additions & 0 deletions docker/solr6/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 docker/solr6/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 => 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 => 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 => ff
"\uFB00" => "ff"

# fi => fi
"\uFB01" => "fi"

# fl => fl
"\uFB02" => "fl"

# ffi => ffi
"\uFB03" => "ffi"

# ffl => ffl
"\uFB04" => "ffl"

# ſt => ft
"\uFB05" => "ft"

# st => st
"\uFB06" => "st"
21 changes: 21 additions & 0 deletions docker/solr6/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 ac16d95

Please sign in to comment.