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

@@ -72,14 +72,22 @@ include '../ops_api.php'

<br><br>

Title:

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

Title:

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

<br><br>

<?
endif;
?>

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

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

@@ -71,14 +71,22 @@ include '../solr.php';

<br><br>

Title:

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

Title:

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

<br><br>

<?
endif;
?>

<?php
if (isset($result['abstract'])):
?>
@@ -91,12 +99,12 @@ include '../solr.php';

<br><br>

<hr>

<?
endif;
?>

<hr>

<?php
endforeach;


+ 2
- 0
solr_import.sh View File

@@ -42,6 +42,8 @@ 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/"

Loading…
Cancel
Save