NASA-PDS / registry-legacy-solr

Legacy Registry Software components leveraging Apache Solr. Includes Legacy Harvest Tool, Registry Manager, PDS3 Catalog Tool, and Search Core library. These components provide the capabilities for loading PDS3 and PDS4 data into the Legacy Solr Registry, driving the PDS keyword search.
Apache License 2.0
0 stars 1 forks source link

Error attempting to run `-delete-all` on indexes #85

Closed jordanpadams closed 3 months ago

jordanpadams commented 4 months ago

💡 Description

This index does not matter, is not used by anything, and does not work properly.

⚔️ Parent Epic / Related Tickets

No response

jordanpadams commented 3 months ago

Workaround added to procedures using curl:

Delete all:

curl -X POST -H 'Content-Type: application/json' --data-binary '{"delete":{"query":"*:*" }}' 'http://localhost:8983/solr/data/update?commit=true'

or delete a package:

curl -X POST -H 'Content-Type: application/json' --data-binary '{"delete":{"query":"package_id:80a1d82c-3c07-4d9d-9be8-85fcbf99473e" }}' '[http://localhost:8983/solr/data/update?commit=true'](http://localhost:8983/solr/data/update?commit=true%27)