I've been struggling with this issue for a while. I'm using Search API & Search API Solr. We've got a view of "event" nodes that has facets, etc. that allows customers to find relevant upcoming events. Everything is working quite well for the most part except on a few of our posts on the website that are NOT EVENTS will sometimes appear in the search results. These posts can be of any other content type (for example job postings) and they sometimes appear even if they're not published. I've attached a screenshot of my views filters below. Does anyone have any suggestions of things I might be able to do to fix this? Thanks for any help you can provide!

Views filters in use

Comments

attheshow created an issue. See original summary.

attheshow’s picture

Issue summary: View changes
attheshow’s picture

Most of these items appear to have multiple aliases set on them. I'm trying to figure out if that's somehow causing the issue.

attheshow’s picture

I've noticed that we have a couple of development environments that were pointing to the production solr index. I'm wondering if they've been indexing content into the production index and providing faulty information about node ids, etc. due to environmental differences. Possibly this is the source of the issue.

drunken monkey’s picture

I've noticed that we have a couple of development environments that were pointing to the production solr index. I'm wondering if they've been indexing content into the production index and providing faulty information about node ids, etc. due to environmental differences. Possibly this is the source of the issue.

That does sound like the best bet, yes. I can't really imagine a content type filter just going missing otherwise. But if a node from a development environment matches the search criteria, but its node ID corresponds to a non-event node in production, this might result in the behavior you describe.
However, using the same Solr index in development and production seems like a terrible idea anyways, so probably you should change that in any case.
Otherwise, you might want to debug the Solr query to see whether the filter is correctly contained there. (And maybe check the Solr index for the data it has on the non-event nodes in the results.)

attheshow’s picture

Status: Active » Closed (fixed)

@drunken monkey Thanks! Yes, we do almost always have our development and staging environments pointing to a different "development" Solr core but the server configuration is part of one of D7 deployment features that we use and if we do a feature revert we have to remember to go back into those environments and manually override the configuration so that it points to development instead of the production core. I think this is probably the source of our issue.