Skip to content

Add solr fields needed for editions table#9029

Merged
mekarpeles merged 1 commit intointernetarchive:masterfrom
cdrini:feature/more-solr-fields
Feb 14, 2026
Merged

Add solr fields needed for editions table#9029
mekarpeles merged 1 commit intointernetarchive:masterfrom
cdrini:feature/more-solr-fields

Conversation

@cdrini
Copy link
Copy Markdown
Collaborator

@cdrini cdrini commented Apr 4, 2024

Work to unblock #8820

Technical

Testing

The new fields are being correctly recorded locally

image

Screenshot

Stakeholders

@cdrini cdrini force-pushed the feature/more-solr-fields branch 2 times, most recently from dd9adc5 to a7ea225 Compare April 4, 2024 06:34
@cdrini cdrini mentioned this pull request Apr 10, 2024
@cdrini cdrini mentioned this pull request Aug 30, 2024
1 task
@tfmorris
Copy link
Copy Markdown
Contributor

This seems to be stale enough that it should be closed.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Nov 15, 2025
@cdrini cdrini force-pushed the feature/more-solr-fields branch from a7ea225 to ce2818c Compare February 14, 2026 04:17
@cdrini cdrini added Needs: Special Deploy This PR will need a non-standard deploy to production and removed Needs: Response Issues which require feedback from lead Solr Next labels Feb 14, 2026
@cdrini
Copy link
Copy Markdown
Collaborator Author

cdrini commented Feb 14, 2026

Rebased, we do still want this it just dropped in priority

@cdrini cdrini marked this pull request as ready for review February 14, 2026 04:18
Copilot AI review requested due to automatic review settings February 14, 2026 04:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds three new fields to the Solr schema to support the editions table feature: work_key, edition_name, and oclc. These fields enable PR #8820 to populate edition tables using Solr data instead of querying the database directly.

Changes:

  • Added work_key field to store work references on edition documents
  • Added edition_name field to store edition names in Solr
  • Added oclc property to EditionSolrBuilder and refactored WorkSolrBuilder.oclc to use it

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
conf/solr/conf/managed-schema.xml Added work_key and edition_name field definitions to Solr schema
openlibrary/solr/solr_types.py Updated SolrDocument TypedDict with work_key and edition_name fields
openlibrary/solr/updater/edition.py Added work_key, edition_name, and oclc properties; updated build() to include new fields
openlibrary/solr/updater/work.py Refactored oclc property to use EditionSolrBuilder.oclc instead of raw edition dicts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mekarpeles mekarpeles merged commit 7a4fa8b into internetarchive:master Feb 14, 2026
10 checks passed
@cdrini cdrini deleted the feature/more-solr-fields branch February 17, 2026 18:19
@cdrini
Copy link
Copy Markdown
Collaborator Author

cdrini commented Feb 17, 2026

Created the new fields in solr, so no longer needs a special deploy

@cdrini cdrini removed the Needs: Special Deploy This PR will need a non-standard deploy to production label Feb 17, 2026
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.

4 participants