Excluded content appears in search results

Created on 28 February 2024, 9 months ago

Problem/Motivation

Content is indexed despite exclusion field being checked.
Using:
- search_api (1.31.0)
- search_api_pantheon (8.1.6)
- search_api_solr (4.3.2)

Steps to reproduce

Installed and enabled the module.
Added the exclusion field to the bundle
Created and saved a node with the checkbox to exclude checked
Cleared the index and re-indexed all content
Did a search and up came the new page

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States j. ayen green

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @j. ayen green
  • 🇺🇸United States smustgrave

    Did you add the setting to the solr index?

  • 🇫🇮Finland heikkiy Oulu

    We have encountered a similar report from our client. We have had the module installed for a couple of years now and no huge issues with it.

    But recently we received a bug report where a content that should not be indexed in the search appeared there for a moment. Now it has again disappeared from the index. I wonder if there is some gap between the indexing process where the content might appear in the search results before it gets unindexed again?

    I was also leaning towards some configuration issue or that the exclude checkbox would have been unchecked. I used the Diff-module to compare the content revisions and it seems that the Exclude entity checkbox has been on the whole time.

    Our relevant versions are
    Drupal core: 10.1.15
    Search API: 1.29
    Search API Solr: 4.3.0

  • Status changed to Postponed: needs info 16 days ago
  • 🇺🇸United States smustgrave

    Sorry for the delay but when rebuilding the index after updating the setting are you sure the old info is being removed? I tried replicating locally but could not.

  • 🇫🇮Finland heikkiy Oulu

    I was able to reproduce it once where the search was returning the item while the checkbox was on but that was months ago and no new reports have been submitted.

    We have updated the module a couple of times and I have not received further bug reports from the client. We updated it again now with Drupal 10.3 so the information is so outdated that it cannot be reproduced anymore in our case reliably.

    I think this could be closed and reopened if it still happens with the supported versions.

  • 🇺🇸United States smustgrave

    Sounds like a plan.

Production build 0.71.5 2024