Closed maxkadel closed 2 years ago
In order to index locally records with arks you should export in your local the env FIGGY_ARK_CACHE_PATH
, Similar to how tests are running.
If the env FIGGY_ARK_CACHE_PATH
does not exist locally, traject.config is looking the /tmp/figgy_ark_cache but because the file tmp/figgy_ark_cache
is probably out of date or never created it takes a long time to run the solr seeding.
1.export FIGGY_ARK_CACHE_PATH=spec/fixtures/marc_to_solr/figgy_ark_cache
2. bundle exec traject -c marc_to_solr/lib/traject_config.rb pathToFile -u http://localhost:solr-port/solr/marc-liberation-core-development
3. curl ‘http://localhost:solr-port/solr/marc-liberation-core-development/update?commit=true’
We should include the above in the documentation.
documentation was added
Trying to add a couple fixture objects to Solr in development kicks off seeding the cache for figgy, which runs for a very long time, and seems to be getting the seed for all the production data, which is not needed in development.
Reproduction:
bundle exec rake servers:start