Simple Machines Community Forum

General Community => Site Comments, Issues and Concerns => Topic started by: Shambles on August 08, 2018, 08:57:51 AM

Title: Junk Topics and Posts board
Post by: Shambles on August 08, 2018, 08:57:51 AM
Just wondering why some of my searches bring up results in board 21, to which I have no access?
Title: Re: Junk Topics and Posts board
Post by: Illori on August 08, 2018, 08:59:37 AM
maybe they were recently deleted? can you provide links that are coming up?
Title: Re: Junk Topics and Posts board
Post by: Shambles on August 08, 2018, 09:11:17 AM
The links don't seem to last long. I just repeated my most recent search and the aforementioned entry no longer appears in the results.

My search term was "revert theme reset" (as a new post appeared by member Humph that I thought I'd seen an hour earlier) and I was right as the earlier post appeared in the Junk Topics and Posts board but not the live non-staff forum.

No big deal. Maybe it's a timing issue.
Title: Re: Junk Topics and Posts board
Post by: Arantor on August 08, 2018, 10:22:15 AM
Or the search indexer not being absolutely up to date (I vaguely recall it runs every 15 minutes)
Title: Re: Junk Topics and Posts board
Post by: Shambles on August 08, 2018, 11:44:48 AM
Is board 21 a recycle bin?
Title: Re: Junk Topics and Posts board
Post by: d3vcho on August 08, 2018, 11:48:23 AM
Yes
Title: Re: Junk Topics and Posts board
Post by: Shambles on August 08, 2018, 11:49:18 AM
Then it's an error to show up in search results for non-staff members?
Title: Re: Junk Topics and Posts board
Post by: Arantor on August 08, 2018, 12:58:55 PM
I think the issue is that the search index lags behind the main database in terms of content.
Title: Re: Junk Topics and Posts board
Post by: Shambles on August 08, 2018, 01:26:10 PM
I guess that might explain it.

Just wondered why {query_see_board} in the search function allowed me to see the name of the reycle bin and the post within it (although the link to the post denied me access).
Title: Re: Junk Topics and Posts board
Post by: Arantor on August 08, 2018, 01:29:17 PM
Because query_see_board isn't invoked there. The presumption is that higher up the chain where the actual searching is done, query_see_board was already applied, and ordinarily that'd be fine. But here is not using any of the stock code, it's using Sphinx and the index just happened to be slightly behind (i.e. what was in the index had a different board id to what the actual DB had, but it was only matching up by post ids)
Title: Re: Junk Topics and Posts board
Post by: Shambles on August 08, 2018, 01:30:20 PM
My God, you're a smart cookie :P
Title: Re: Junk Topics and Posts board
Post by: Arantor on August 08, 2018, 01:31:14 PM
I just happen to know how the search backend system works and I used to be on the Sphinx support team back in the day. ;)
Title: Re: Junk Topics and Posts board
Post by: Shambles on August 08, 2018, 01:45:43 PM
Something in the back of my mind led me to look at some historical PMs.

Lo, and behold...

(https://i.imgur.com/NO0sHjB.jpg)

Unfortunately, due to a possible bug in the PM system (which I'll report separately) no parts of my conversation in the PM show up.