CDLUC3 / ezid

CDLUC3 ezid
MIT License
11 stars 4 forks source link

API search functionality to OpenSearch #603

Open sfisher opened 3 months ago

sfisher commented 3 months ago

I believe there is an API call that searches by keyword from what Jing mentioned.

I looked through the code and I do not see anything like this, perhaps the batch download action is what is being referred to?

I see reference to a curl command like

curl -u username:password -d format=anvl -d type=ark -d type=doi -d permanence=real https://ezid.cdlib.org/download_request

I tested this with apitest, but I don't currently have all the 30m records populated and I'm not sure there are any records yet (probably at the end of the index). I need to check with @jsjiang to see if we have other logins I can test or maybe wait for indexing to finish.

jsjiang commented 1 month ago

@sfisher Hi Scott, the batch download request is processed by an asynchronous background job ezidapp/management/commands/proc-download.py. In the_harvest1 function it searches the searchIndetifier table. Here is the code in the main branch.

Jing