瀏覽代碼

added core deletion to solr_import.sh script

main
Simon Bowie 3 年之前
父節點
當前提交
acf3040b43
共有 3 個檔案被更改,包括 26 行新增8 行删除
  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 查看文件



<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 查看文件



<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 查看文件



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…
取消
儲存