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".
ssh -L 7872:localhost:8983 pulsys@lib-solr-staging6
- 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, anddpul-giraffe.json
is what the file should be called when saved.
- In this example,
- To index your sample data, you can run
bundle exec rake solr:load_sample_data_file\[dpul,dpul-giraffe.json\]
- 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 thedpul-giraffe.json
array into thedpul.json
array.