Add tasks and abstraction#13
Conversation
da1af96 to
ecdc2d0
Compare
|
Thanks for the contribution. A couple of comments before it can be merged.
Maybe something like Then |
|
Updated default location to be |
This request adds three new rake tasks: - clean: to delete the tmp directory - delete: to delete the Solr index - all: combines clone and index for easier first time use Also, abstracts the Solr URL for better handling of alternative Solr installations. Use of an .env file is supported, as well as adding the URL to the rake tasks (index, delete, and all). Additionally, the --verbose flag can be used to see output.
|
Thanks looks great! Two additional questions came up as I was looking at this again,
I envision that GeoCombine will soon be a dependency in GeoBlacklight and I'm unsure if these indexing tasks are even appropriate (I know I was the one who added them to start with 😸 ). What are your thoughts on this @mossiso ? |
|
Those are great points. We are using it mainly from the command line, so I built it with that in mind, but you're right, it would be better to take out the dotenv requirement and the delete task to make it more interoperable in other workflows. I don't really know the larger scope and design for GeoCombine/GeoBlacklight (just how we're implementing it for now). I'll work on taking out the dotenv and the delete task. |
You can set the URI using environment variables. From command line call the rake task with `SOLR_URL='http://192.168.59.103:12345/solr' rake geocombine:index`
|
Changes Unknown when pulling fe7a05b on mossiso:additives into * on OpenGeoMetadata:master*. |
Delete option was to clear out the Solr index, but was removed so accidental Solr index clearing could not happen.
|
Changes Unknown when pulling 82d9908 on mossiso:additives into * on OpenGeoMetadata:master*. |
|
closing this, since it's over 8 years old. |
This request adds three new rake tasks:
Also, abstracts the Solr URL for better handling of alternative Solr installations. Use of an .env file is supported, as well as adding the URL to the rake tasks (index, delete, and all).
Additionally, the --verbose flag can be used to see output.