posted 14 years ago
I've just started out learning JForum, and I've been playing around with the administrative interface, and I've noticed that part of the Administrative interface doesn't work. If you delete the indexes, or they become corrupted in any way, you would expect the admin panel to allow you to regenerate the entire index from the posts stored in the database. When you run the reindexing job in these circumstances, it appears to finish without any problems, and yet when you run a search, you get no results. At the very least it should tell you how many posts were reindexed - or give you some form of error message.
So I had a look at the code, and have found out what the problem is. Here is the class in question (I think)..
The problem appears to be that this class loads the messages out of the index in order to reindex them. This doesn't make any sense if the index has been moved, lost or corrupted - what it should do is load the posts from the database before reindexing them.
I was wondering if anybody knew why this class functions in the way that it does? I'm going to modify it myself, locally, so it loads the posts from the DB, and so it provides a bit more debugging information; but if theres something I've missed, or misunderstood then this could be wasted effort.
Thanks
[originally posted on jforum.net by jsp1611]