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