Browse Source

more changes to solr_import.sh

main
Simon Bowie 2 years ago
parent
commit
39131dbb77
1 changed files with 11 additions and 11 deletions
  1. +11
    -11
      solr_import.sh

+ 11
- 11
solr_import.sh View File

############################################################ ############################################################


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


# Get the options # Get the options
while getopts ":hlimzaespxdw" option; do while getopts ":hlimzaespxdw" option; do
core="all" core="all"
docker exec -it solr bin/solr delete -c $core docker exec -it solr bin/solr delete -c $core
docker exec -it solr solr create_core -c $core -d custom docker exec -it solr solr create_core -c $core -d custom
location="POP_Dataset_2022"
location="data/POP_Dataset_2022"
for subdirectory in $location/*/ for subdirectory in $location/*/
do do
subdirectory=${subdirectory%*/} # remove the trailing "/" subdirectory=${subdirectory%*/} # remove the trailing "/"
exit;; exit;;
a) # index ACTIVE folder a) # index ACTIVE folder
core="active" core="active"
location="pop_rtfs/ACTIVE (160)"
location="data/pop_rtfs/ACTIVE (160)"
Import Import
exit;; exit;;
e) # index EXPANDING folder e) # index EXPANDING folder
core="expanding" core="expanding"
location="pop_rtfs/EXPANDING (169)"
location="data/pop_rtfs/EXPANDING (169)"
Import Import
exit;; exit;;
i) # index INVISIBLE folder i) # index INVISIBLE folder
core="invisible" core="invisible"
location="pop_rtfs/IN.VISIBLE (204)"
location="data/pop_rtfs/IN.VISIBLE (204)"
Import Import
exit;; exit;;
m) # index MULTI-SPECIES folder m) # index MULTI-SPECIES folder
core="multispecies" core="multispecies"
location="pop_rtfs/MULTI-SPECIES (180)"
location="data/pop_rtfs/MULTI-SPECIES (180)"
Import Import
exit;; exit;;
p) # index PISSING & LEAKING folder p) # index PISSING & LEAKING folder
core="pissing" core="pissing"
location="pop_rtfs/PISSING & LEAKING (168)"
location="data/pop_rtfs/PISSING & LEAKING (168)"
Import Import
exit;; exit;;
x) # index SECRET folder x) # index SECRET folder
core="secret" core="secret"
location="pop_rtfs/SECRET (92)"
location="data/pop_rtfs/SECRET (92)"
Import Import
exit;; exit;;
d) # index SELF-DEFENDING folder d) # index SELF-DEFENDING folder
core="defending" core="defending"
location="pop_rtfs/SELF-DEFENDING (115)"
location="data/pop_rtfs/SELF-DEFENDING (115)"
Import Import
exit;; exit;;
s) # index SURVIVING folder s) # index SURVIVING folder
core="surviving" core="surviving"
location="pop_rtfs/SURVIVING (166)"
location="data/pop_rtfs/SURVIVING (166)"
Import Import
exit;; exit;;
w) # index WORKING folder w) # index WORKING folder
core="working" core="working"
location="pop_rtfs/WORKING (101)"
location="data/pop_rtfs/WORKING (101)"
Import Import
exit;; exit;;
\?) # Invalid option \?) # Invalid option

Loading…
Cancel
Save