Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 1.07 KB

sample-data.md

File metadata and controls

18 lines (14 loc) · 1.07 KB

Sample data

This repository includes sample data for solr, to assist with local development. The sample data are automatically loaded when you start the development server.

Each solr core includes at least five documents matching "cats", and at least one document matching "penguins".

Adding more sample data

  1. ssh -L 7872:localhost:8983 pulsys@lib-solr-staging6
  2. In a new terminal: bundle exec rake solr:create_sample_data\[giraffe,dpul-staging,dpul-giraffe.json\]
    • In this example, giraffe is the query, dpul-staging is the collection to search, and dpul-giraffe.json is what the file should be called when saved.
  3. To index your sample data, you can run bundle exec rake solr:load_sample_data_file\[dpul,dpul-giraffe.json\]
  4. Currently, bundle exec rake servers:start only indexes files in the sample-data directory that have a filename matching the name of a service (e.g. catalog, dpul). If you'd like to add your DPUL giraffe documents to the index for all developers, you can copy the contents of the dpul-giraffe.json array into the dpul.json array.