Browse Source

added core deletion to solr_import.sh script

main
Simon Bowie 2 years ago
parent
commit
acf3040b43
3 changed files with 26 additions and 8 deletions
  1. +11
    -3
      site/public/id_search.php
  2. +13
    -5
      site/public/search.php
  3. +2
    -0
      solr_import.sh

+ 11
- 3
site/public/id_search.php View File



<br><br> <br><br>


Title:

<?php <?php
echo $result['title'];
if ($result['title']):
?> ?>


Title:

<?php
echo $result['title'];
?>

<br><br> <br><br>


<?
endif;
?>

<?php <?php
if (isset($publication_details['original_title'])): if (isset($publication_details['original_title'])):
?> ?>

+ 13
- 5
site/public/search.php View File



<br><br> <br><br>


Title:

<?php <?php
echo $result['title'];
if (isset($result['title'])):
?> ?>


Title:

<?php
echo $result['title'];
?>

<br><br> <br><br>


<?
endif;
?>

<?php <?php
if (isset($result['abstract'])): if (isset($result['abstract'])):
?> ?>


<br><br> <br><br>


<hr>

<? <?
endif; endif;
?> ?>


<hr>

<?php <?php
endforeach; endforeach;



+ 2
- 0
solr_import.sh View File



Import() Import()
{ {
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


#docker exec -ti --user=solr solr bash -c "cp -r /opt/solr/example/files/conf/* /var/solr/data/$core/conf/" #docker exec -ti --user=solr solr bash -c "cp -r /opt/solr/example/files/conf/* /var/solr/data/$core/conf/"

Loading…
Cancel
Save