|
|
@@ -43,7 +43,7 @@ Help() |
|
|
|
Import() |
|
|
|
{ |
|
|
|
docker exec -it solr bin/solr delete -c $core |
|
|
|
|
|
|
|
|
|
|
|
docker exec -it solr solr create_core -c $core -d custom |
|
|
|
|
|
|
|
#docker exec -ti --user=solr solr bash -c "cp -r /opt/solr/example/files/conf/* /var/solr/data/$core/conf/" |
|
|
@@ -64,7 +64,7 @@ Import() |
|
|
|
directory="/Users/ad7588/projects/patent_site" |
|
|
|
|
|
|
|
# Get the options |
|
|
|
while getopts ":hlimzaes" option; do |
|
|
|
while getopts ":hlimzaespxdw" option; do |
|
|
|
case $option in |
|
|
|
l) # display License |
|
|
|
License |
|
|
@@ -97,11 +97,31 @@ while getopts ":hlimzaes" option; do |
|
|
|
location="data/pop_rtfs/MULTI-SPECIES (180)" |
|
|
|
Import |
|
|
|
exit;; |
|
|
|
p) # index PISSING & LEAKING folder |
|
|
|
core="pissing" |
|
|
|
location="data/pop_rtfs/PISSING & LEAKING (168)" |
|
|
|
Import |
|
|
|
exit;; |
|
|
|
x) # index SECRET folder |
|
|
|
core="secret" |
|
|
|
location="data/pop_rtfs/SECRET (92)" |
|
|
|
Import |
|
|
|
exit;; |
|
|
|
d) # index SELF-DEFENDING folder |
|
|
|
core="defending" |
|
|
|
location="data/pop_rtfs/SELF-DEFENDING (115)" |
|
|
|
Import |
|
|
|
exit;; |
|
|
|
s) # index SURVIVING folder |
|
|
|
core="surviving" |
|
|
|
location="data/pop_rtfs/SURVIVING (166)" |
|
|
|
Import |
|
|
|
exit;; |
|
|
|
w) # index WORKING folder |
|
|
|
core="working" |
|
|
|
location="data/pop_rtfs/WORKING (101)" |
|
|
|
Import |
|
|
|
exit;; |
|
|
|
\?) # Invalid option |
|
|
|
echo "Error: Invalid option" |
|
|
|
exit;; |