Skip to content

Conversation

@cdrini
Copy link
Collaborator

@cdrini cdrini commented Aug 21, 2025

Closes #11144

This will allow us to find direct book provided books with ebook_provider:direct (vs eg ebook_provider:ia or book_provider:standard_ebooks, etc)

Technical

Testing

Screenshot

Stakeholders

@Copilot Copilot AI review requested due to automatic review settings August 21, 2025 15:42
@github-actions github-actions bot added the Priority: 1 Do this week, receiving emails, time sensitive, . [managed] label Aug 21, 2025
Copy link
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 an ebook_provider field to Solr indexing to track which providers offer ebooks for a given work or edition. The change supports storing and querying multiple provider names (e.g., "ia", "overdrive") alongside existing ebook access information.

  • Adds ebook_provider field to Solr schema and document types
  • Updates edition and work updaters to collect provider names from available book providers
  • Includes the new field in work search scheme for query support

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
openlibrary/solr/updater/work.py Adds ebook_provider property that aggregates provider names from all editions
openlibrary/solr/updater/edition.py Updates to use multiple providers and adds ebook_provider property to build method
openlibrary/solr/solr_types.py Adds ebook_provider field to SolrDocument type definition
openlibrary/plugins/worksearch/schemes/works.py Includes ebook_provider in work search fields
openlibrary/book_providers.py Adds provider_name property and updates provider lookup function
conf/solr/conf/managed-schema.xml Defines ebook_provider as a multi-valued string field in Solr schema

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cdrini cdrini added the Needs: Special Deploy This PR will need a non-standard deploy to production label Aug 21, 2025
@mekarpeles mekarpeles merged commit 77f73b1 into internetarchive:master Aug 21, 2025
4 checks passed
@cdrini cdrini deleted the 11144/feature/solr-provider-field branch August 21, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Special Deploy This PR will need a non-standard deploy to production Priority: 1 Do this week, receiving emails, time sensitive, . [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add solr field to find direct web book

2 participants