ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: kode54 on September 29, 2016, 07:56:45 pm

Title: Sphinx Search indexes hidden forums
Post by: kode54 on September 29, 2016, 07:56:45 pm
I am having a sudden problem with search indexing. It would appear that the search indexer is finding results in all of the forums, even forums that the requesting user has no access to, or cannot see in the first place. For instance, it is finding deleted spam which is taking up space in our hidden trash forum.

E: Maybe I was mistaken. I ran the search again from a fresh private browsing window, and found no such results in the search output.
Title: Re: Sphinx Search indexes hidden forums
Post by: Spuds on September 29, 2016, 08:07:40 pm
Maybe it was inside of the cron job delta index run time, which is 10 or 15 mins (depends on what you put in your crontab)

Either way it should index what it can find and cull out the display results based on the user (meaning there is only one search "index", not one per user).
Title: Re: Sphinx Search indexes hidden forums
Post by: kode54 on September 29, 2016, 08:12:27 pm
I proposed a theoretical to the moderator in question, in case they come back and can replicate the results.


I'm guessing 4 could happen, if the visibility in the culled results is against the forum/board ID that is returned by Sphinx, rather than the real Forum/Board ID that the forum database claims owns the topic. I still have to hear back from them to find out if this explanation even makes any sense.
Title: Re: Sphinx Search indexes hidden forums
Post by: Spuds on September 29, 2016, 08:21:25 pm
Indeed ... since the Sphinx index is always lagging (you can reduce this with a shorter time on the delta index) it can return "old" results. 

I've played around a bit with a more real time index update,  as occurs with the custom index, but never finished the ideas.  Sphinx capabilities from minor release to minor release can vary quite a lot and that makes things ....... interesting.  There is also the overhead of doing this, then again Sphinx is fast.
Title: Re: Sphinx Search indexes hidden forums
Post by: emanuele on November 13, 2016, 05:48:48 am
So this doesn't look like a real bug, more an annoyance right?