Skip to content

Acquisitions in search.json — weave provider acquisitions at query time (#12844) - #13395

Draft
openlibrary-bot wants to merge 1 commit into
masterfrom
12844/acquisitions-search
Draft

Acquisitions in search.json — weave provider acquisitions at query time (#12844)#13395
openlibrary-bot wants to merge 1 commit into
masterfrom
12844/acquisitions-search

Conversation

@openlibrary-bot

Copy link
Copy Markdown
Collaborator

Follow-up to the ingestion PR #13241. Purely additive, read-side change: weaves provider acquisitions from the acquisitions table onto edition docs in search.json at query time (mirrors availability weaving), gated behind the acquisitions field. Carved out of #13241 so ingestion can land independently — this surfaces the value once data is flowing. Depends only on the acquisitions table (#12851, already on master); it will show results once #13241's ingestion is populating rows. Note: relies on solr_editions (editions expanded in the response). Part of #12844.

… v1)

Acquisition.get_by_editions batch-fetches acquisitions by edition_id;
add_acquisitions() attaches them to search-result docs (edition-scoped, no N+1).
Wired into _process_solr_search_response, gated on 'acquisitions' being among
the requested fields -- mirrors the availability weave, query-time fetch (not
embedded in Solr).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants