Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Resource Type facet in search #227

Conversation

philippgualdi
Copy link
Collaborator

@philippgualdi philippgualdi commented Jul 9, 2024

Summary

This pull request introduces functionality to allow users to filter records by resource type. This enhancement aims to improve the usability and efficiency of our search capabilities, enabling users to filter records more precisely based on the type of resource they are interested in.

Background

The ability to filter by resource type has been a frequently requested feature from our user community. Previously, users could only filter records based on access type. This limitation made it challenging for users to narrow down search results to specific types of resources.

Changes

  • Facet Update: The resource_type field is alredy indexed and searchable, allowing it to be used as a filter in search queries.
  • Search API Enhancement: Modified the search API to accept resource_type as a facet parameter. Users can now specify one or more resource types to filter their search results.
  • User Interface Update: Added a new filter option in the search interface for resource type. Users can select from a predefined list of resource types, or type in the resource type to filter their search results.

Benefits

  • Improved Search Precision: Users can now easily find resources of a specific type, enhancing the overall search experience.
  • Increased Usability: The addition of resource type filtering makes the search functionality more intuitive and user-friendly.
    Enhanced Data Organization: By categorizing records by resource type, we can offer more structured and organized search results.

Demo

image

@philippgualdi philippgualdi force-pushed the feature-search-resource-type-facet branch from b9dd9a1 to d643727 Compare July 9, 2024 08:08
@philippgualdi philippgualdi force-pushed the feature-search-resource-type-facet branch from d643727 to 80ca73a Compare July 9, 2024 08:19
@philippgualdi philippgualdi changed the title WIP: Enable Resource Type facet in search Enable Resource Type facet in search Jul 11, 2024
@philippgualdi philippgualdi marked this pull request as ready for review July 11, 2024 10:00
@@ -90,9 +92,6 @@ class Marc21RecordServiceConfig(RecordServiceConfig, ConfiguratorMixin):
schema_secret_link = None
review = None

# Permission policy
Copy link
Contributor

Choose a reason for hiding this comment

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

does this change belongs to the resource_type addition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

does this change belongs to the resource_type addition?

No this line is a duplet and gets overwritten later in the config.

@philippgualdi philippgualdi merged commit 00de64f into tu-graz-library:master Jul 15, 2024
4 checks passed
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