Skip to content

Fixes #5456 Reduce az_search_api noncanonical duplicates#5462

Open
tadean wants to merge 1 commit intomainfrom
issue/5456
Open

Fixes #5456 Reduce az_search_api noncanonical duplicates#5462
tadean wants to merge 1 commit intomainfrom
issue/5456

Conversation

@tadean
Copy link
Copy Markdown
Contributor

@tadean tadean commented Apr 3, 2026

Description

This PR adds an a new az_search_api processor called az_canonical that strikes content from the index if its canonical metatag does not match the content's url.

Release notes

az_search_api will now skip indexing of content that is not canonical to the site, as defined by the opengraph url metatag.

Related issues

#5456

How to test

  • See testing instructions in Fixes #5095 New experimental module providing Solr/Search API configuration #5104 for instructions on how to set up credential secrets
  • Create content, or use demo content
  • Verify that some created content uses metatag "Opengraph Page Url" that points elsewhere
    • Some demo content meets this condition
  • Visit /admin/config/search/search-api/index/az_search_api_index
  • Click Queue all items for reindexing
  • Click Index now
  • Visit watchdog log, verify there are log entries from az_search_api mentioning that certain pages were not indexed

Types of changes

Arizona Quickstart (install profile, custom modules, custom theme)

  • Patch release changes
    • Bug fix
    • Accessibility, performance, or security improvement
    • Critical institutional link or brand change
    • Adding experimental module
    • Update experimental module
  • Minor release changes
    • New feature
    • Breaking or visual change to existing behavior
    • Upgrade experimental module to stable
    • Enable existing module by default or database update
    • Non-critical brand change
    • New internal API or API improvement with backwards compatibility
    • Risky or disruptive cleanup to comply with coding standards
    • High-risk or disruptive change (requires upgrade path, risks regression, etc.)
  • Other or unknown
    • Other or unknown

Drupal core

  • Patch release changes
    • Security update
    • Patch level release (non-security bug-fix release)
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major or minor level update
  • Other or unknown
    • Other or unknown

Drupal contrib projects

  • Patch release changes
    • Security update
    • Patch or minor level update
    • Add new module
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major level update
  • Other or unknown
    • Other or unknown

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My change requires release notes.

@tadean tadean self-assigned this Apr 3, 2026
@tadean tadean requested review from a team as code owners April 3, 2026 00:06
@tadean tadean added enhancement New feature or request patch release Issues to be included in the next patch release integrations This relates to an integration into a central service. user experience Improvements to user experience labels Apr 3, 2026
@az-digital-bot
Copy link
Copy Markdown
Contributor

Tugboat has finished building the preview for this pull request!

Link:

Dashboard:

@bberndt-uaz bberndt-uaz added the backport-2.x Changes to be back-ported to the 2.x development branch label Apr 3, 2026
@bberndt-uaz bberndt-uaz moved this from Todo to Needs review in 3.3.2 bug-fix patch release Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-2.x Changes to be back-ported to the 2.x development branch enhancement New feature or request integrations This relates to an integration into a central service. patch release Issues to be included in the next patch release release notes user experience Improvements to user experience

Projects

Status: Needs review

Development

Successfully merging this pull request may close these issues.

4 participants