Sfoglia il codice sorgente

changed directory parameters for solr_import.sh

main
Simon Bowie 2 anni fa
parent
commit
f043e13711
2 ha cambiato i file con 10 aggiunte e 8 eliminazioni
  1. +1
    -0
      .gitignore
  2. +9
    -8
      solr_import.sh

+ 1
- 0
.gitignore Vedi File

@@ -1,2 +1,3 @@
.DS_Store
config.env
data

+ 9
- 8
solr_import.sh Vedi File

@@ -48,9 +48,9 @@ Import()

docker restart solr

sleep 30
sleep 10

docker run --rm -v "/Users/ad7588/$location:/$core" --network=host solr:latest post -c $core /$core
docker run --rm -v "$directory/$location:/$core" --network=host solr:latest post -c $core /$core
}
############################################################
############################################################
@@ -59,6 +59,7 @@ Import()
############################################################

# Set variables
directory="/Users/ad7588/projects/patent_site"

# Get the options
while getopts ":hlimzaes" option; do
@@ -71,32 +72,32 @@ while getopts ":hlimzaes" option; do
exit;;
z) # index all
core="all"
location="Downloads/2018 (10381)"
location="data/2018 (10381)"
Import
exit;;
a) # index ACTIVE folder
core="active"
location="Downloads/pop_rtfs/ACTIVE (160)"
location="data/pop_rtfs/ACTIVE (160)"
Import
exit;;
e) # index EXPANDING folder
core="expanding"
location="Downloads/pop_rtfs/EXPANDING (169)"
location="data/pop_rtfs/EXPANDING (169)"
Import
exit;;
i) # index INVISIBLE folder
core="invisible"
location="Downloads/pop_rtfs/IN.VISIBLE (204)"
location="data/pop_rtfs/IN.VISIBLE (204)"
Import
exit;;
m) # index MULTI-SPECIES folder
core="multispecies"
location="Downloads/pop_rtfs/MULTI-SPECIES (180)"
location="data/pop_rtfs/MULTI-SPECIES (180)"
Import
exit;;
s) # index SURVIVING folder
core="surviving"
location="Downloads/pop_rtfs/SURVIVING (166)"
location="data/pop_rtfs/SURVIVING (166)"
Import
exit;;
\?) # Invalid option

Loading…
Annulla
Salva