pulibrary / bibdata

Local API for retrieving bibliographic and other useful data from Alma (Ruby 3.2.0, Rails 7.1.3.4)
BSD 2-Clause "Simplified" License
16 stars 7 forks source link

Seeding figgy cache in development seems to block indexing to Solr #1881

Closed maxkadel closed 2 years ago

maxkadel commented 2 years ago

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:

christinach commented 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’
christinach commented 2 years ago

We should include the above in the documentation.

christinach commented 2 years ago

documentation was added