Procházet zdrojové kódy

changed directory parameters for solr_import.sh

main
Simon Bowie před 2 roky
rodič
revize
f043e13711
2 změnil soubory, kde provedl 10 přidání a 8 odebrání
  1. +1
    -0
      .gitignore
  2. +9
    -8
      solr_import.sh

+ 1
- 0
.gitignore Zobrazit soubor

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

+ 9
- 8
solr_import.sh Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit