|  |  |  |  |  |  | 
														
													
														
															|  |  | 
 |  |  | 
 | 
														
													
														
															|  |  | docker restart solr |  |  | 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 | 
														
													
														
															|  |  | } |  |  | } | 
														
													
														
															|  |  | ############################################################ |  |  | ############################################################ | 
														
													
														
															|  |  | ############################################################ |  |  | ############################################################ | 
														
													
												
													
														
															|  |  |  |  |  |  | 
														
													
														
															|  |  | ############################################################ |  |  | ############################################################ | 
														
													
														
															|  |  | 
 |  |  | 
 | 
														
													
														
															|  |  | # Set variables |  |  | # Set variables | 
														
													
														
															|  |  |  |  |  | directory="/Users/ad7588/projects/patent_site" | 
														
													
														
															|  |  | 
 |  |  | 
 | 
														
													
														
															|  |  | # Get the options |  |  | # Get the options | 
														
													
														
															|  |  | while getopts ":hlimzaes" option; do |  |  | while getopts ":hlimzaes" option; do | 
														
													
												
													
														
															|  |  |  |  |  |  | 
														
													
														
															|  |  | exit;; |  |  | exit;; | 
														
													
														
															|  |  | z) # index all |  |  | z) # index all | 
														
													
														
															|  |  | core="all" |  |  | core="all" | 
														
													
														
															|  |  | location="Downloads/2018 (10381)" |  |  |  | 
														
													
														
															|  |  |  |  |  | location="data/2018 (10381)" | 
														
													
														
															|  |  | Import |  |  | Import | 
														
													
														
															|  |  | exit;; |  |  | exit;; | 
														
													
														
															|  |  | a) # index ACTIVE folder |  |  | a) # index ACTIVE folder | 
														
													
														
															|  |  | core="active" |  |  | core="active" | 
														
													
														
															|  |  | location="Downloads/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="Downloads/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="Downloads/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="Downloads/pop_rtfs/MULTI-SPECIES (180)" |  |  |  | 
														
													
														
															|  |  |  |  |  | location="data/pop_rtfs/MULTI-SPECIES (180)" | 
														
													
														
															|  |  | Import |  |  | Import | 
														
													
														
															|  |  | exit;; |  |  | exit;; | 
														
													
														
															|  |  | s) # index SURVIVING folder |  |  | s) # index SURVIVING folder | 
														
													
														
															|  |  | core="surviving" |  |  | core="surviving" | 
														
													
														
															|  |  | location="Downloads/pop_rtfs/SURVIVING (166)" |  |  |  | 
														
													
														
															|  |  |  |  |  | location="data/pop_rtfs/SURVIVING (166)" | 
														
													
														
															|  |  | Import |  |  | Import | 
														
													
														
															|  |  | exit;; |  |  | exit;; | 
														
													
														
															|  |  | \?) # Invalid option |  |  | \?) # Invalid option |