Giter Site home page Giter Site logo

winsorandnewtonarchivesolr's Introduction

winsorAndNewtonArchiveSolr

Search index installation

The original system used a search form that pulled data from a MySQL instance. This has now been bypassed and uses Solr 7.4 for the search index and the Solarium PHP library. To install this you will need to pull code from another repository as detailed below. Once installed you should be ready to go.

To install solr 7.4 you need Java 8 on your system.

java -version

Check the output comes back with

 java version "1.8.0_144"

Now:

cd /opt
wget http://www-eu.apache.org/dist/lucene/solr/7.4.0/solr-7.4.0.tgz
tar xzf solr-7.4.0.tgz solr-7.4.0/bin/install_solr_service.sh --strip-components=2
sudo bash ./install_solr_service.sh solr-7.4.0.tgz

Change to sudo user:

sudo su - 

From here on assume you will be as sudo to solr user:

sudo su - solr -c "/opt/solr/bin/solr create -c winsor -n data_driven_schema_configs"
sudo su - solr -c "/opt/solr/bin/solr create -c winsorSearches -n data_driven_schema_configs"

Now set up your config for these cores.

git clone https://github.com/FitzwilliamMuseum/winsorAndNewtonArchiveSolr
mv winsorAndNewtonArchiveSolr/winsor/conf winsor/
mv winsorAndNewtonArchiveSolr/winsorSearches/conf winsorSearches/
mv winsorAndNewtonArchiveSolr/rawdata /home/data
rm -r winsorAndNewtonArchiveSolr/

Restart solr

service solr restart

To check if solr is running

service solr status

Now import the data to system from the csv files associated.

/opt/solr/bin/post -c winsor /home/data/data_7.csv
/opt/solrbin/post -c winsorSearches /home/data/searches.csv

To stop and start solr

service solr stop|start

License

This code is licensed under GPL3

Authors

The current code was rewritten for a Laravel port by Daniel Pett and builds on work by previous Fitzwilliam staff.

winsorandnewtonarchivesolr's People

Contributors

portableant avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.