Threads stop showing similar threads widget after they are merged

Mr Lucky

Well-known member
I had four threads all about the exact same topic with the same keywords in the title. They all appeared in a similar threads widget which I believe is mostly (or 100%?) based on thread title . Each of these threads showed the other similar threads in the widget, as you would expect.

So I decided to merge them all as they really were similar.

To start with I merged two of them but found that although the thread that was merged into still showed in the similar threads widget for the others (as expected) that merged thread itself did not display a similar threads widget which it had done before the merge.

All the threads do appear in the search suggestion for the keywords

NB: I tried rebuilding the search index and thread cache but that didn't change things.

Is there a reason why the merged thread would no longer show the widget with the other similar threads? Is this to be expected or is it a bug?
 
Is there a reason why the merged thread would no longer show the widget with the other similar threads? Is this to be expected or is it a bug?
I am a bit unclear what you mean here so I will approach it from the standpoint of the threads table in the database.

If you take 2 entire threads and merge them, one of those threads actually should no longer exist. That is the point of merging them. The xf_thread table has a node_id that tells it which forum it belongs to. The xf_post table has a value for xf_thread that tells you where the post belongs.

So what you did when you merged threads is tell the posts in Thread A that have a thread _id of 12345 that their thread_id is now 67890 which is Thread B. I would no longer expect Thread A with the thread_id 12345 to show up in anything.

If you are not moving every single post in the thread, then the thread should still exist and show up.
 
So what you did when you merged threads is tell the posts in Thread A that have a thread _id of 12345 that their thread_id is now 67890 which is Thread B. I would no longer expect Thread A with the thread_id 12345 to show up in anything.
Yes, I merged thread A into thread B, so am aware thread A no longer exists.
If you are not moving every single post in the thread, then the thread should still exist and show up.
But I would expect Thread b to still show similar threads widget like it did before the posts from thread A got moved into it.
 
Then I would expect it to be there too. If they had identical names I could understand why it might be missing if it were keyed off the thread title instead of the thread id. I could not replicate this last night but I also have not messed much with how Elastic Search works.

I did run across a post that tells how to get into a query tool that I thought was interesting. You posted in that thread too but it was 5 years ago so maybe you forgot about it. I just ran that on my site against a new thread, and then in the Raw Query section I manually changed the 20 to a 50 and it showed 50 results. and you can see the weight they were assigned.

So if you do that, does your missing thread show up in that list but is just weighted too low to show in the top 5 or whatever the number you have set for a limit? Or does it not show at all?
 
Back
Top Bottom