Similar Threads

Similar Threads 5.3

No permission to download
I am unable to reinstall after uninstalling v3.3

I am getting this error:
Code:
Callback Andy_SimilarThreads_Listener::Thread is invalid (Invalid Class).

Edit: Turns out the problem was caused by using Add-on Install & Upgrade instead of the manual install.
Better tag @Chris D about this?
 
Does it automatically use Elastic Search if available or is this a setting somewhere? (v 3.5)

Update: I got a response from Andy: "The add-on will use Enhanced Search automatically if available."
 
Last edited:
Hi Andy,
Just to make it totally clear -- the add-on now works with elastic search, but does it do so automatically? IE, if it detects that XF is using ES, it will use it?
Do we need to modify ES in any way? Or rebuild any indices, etc...?
 
It kind of did not work after reinstall. I also installed Enhanced Search during the upgrade. Not sure what went wrong. The similar threads just does not appear anywhere no matter how I configured the settings.

Update: It was a usergroup issue. Fixed! Thanks @DRaver and @AndyB!
 
Last edited:
If you use elasticsearch in server that is not same as web server you have to change
Andy/SimilarThreads/ControllerPublic/Thread.php and
Andy/SimilarThreads/ControllerPublic/Forum.php

Cahnge This line
PHP:
$ch = curl_init('http://localhost:' . $esPort . '/' . $indexName . '/_search?pretty=true');
with
PHP:
$ch = curl_init($esHost.':' . $esPort . '/' . $indexName . '/_search?pretty=true');

and add this code
PHP:
// get ElasticSearch host
            $esHost = $esServerOption['host'];
after this code
PHP:
// get ElasticSearch options   
            $esServerOption = XenForo_Application::get('options')->elasticSearchServer;
 
Last edited:
I don't want to make Andy's life difficult, but here are my observations and suggestions:

1 - it looks like it only looks at the first 3 words; this is too few -- it will never get an accurate list of similar threads just by looking at 3 words, unless you also...

2 - prevent it from searching 'stop words' -- these are common english language words that are frequently filtered out of search engines. here is a list:

http://www.ranks.nl/stopwords/

If you could provide an option to prevent it from searching on stop words, and force it to look up 5 words in the enhanced search, i suspect you'd get a pretty reliable system.
 
I don't want to make Andy's life difficult, but here are my observations and suggestions:

1 - it looks like it only looks at the first 3 words; this is too few -- it will never get an accurate list of similar threads just by looking at 3 words, unless you also...

2 - prevent it from searching 'stop words' -- these are common english language words that are frequently filtered out of search engines. here is a list:

http://www.ranks.nl/stopwords/

If you could provide an option to prevent it from searching on stop words, and force it to look up 5 words in the enhanced search, i suspect you'd get a pretty reliable system.

Ok, Andy's add-on DOES use stop words (they are on the options page), you can even add your own from the mega-list I linked to :)

Definitely a useful add-on
 
AndyB updated Similar Threads with a new update entry:

See description.

Similar Threads v3.6 changes:

1) Similar Threads title links now open in new tab when creating new thread.
2) Fixed code so servers running Enhanced Search on a remote server will operate correctly.
3) Added code to remove tabs in thread titles.

The recent updates to Similar Threads represents many hours of coding. Please show your support by sending a donation, my PayPal email address will be provided upon request via Personal Conversation. Thank you.

Read the rest of this update entry...
 
ошибка сервера
Undefined property: stdClass::$hits

  1. XenForo_Application::handlePhpError() в Andy/SimilarThreads/ControllerPublic/thread.php в строке 247
  2. Andy_SimilarThreads_ControllerPublic_thread->actionIndex() в XenForo/FrontController.php в строке 347
  3. XenForo_FrontController->dispatch() в XenForo/FrontController.php в строке 134
  4. XenForo_FrontController->run() в /home/admin/web/site.com/public_html/index.php в строке 13
I found the reason

in settings
Exclude Forums: 33,44 - NO ERRORS
And if a space 33, 44 - then the error
 
Last edited:
would be possible to create a cache for each topic??

depending on the volume of data and number of users increasing the cpu gets to be worrying
I am noticing that while the new update works great, and looks great, the CPU use is extreme. It seems to me that since the update now shows similar threads on mobile (responsive), that my CPU use is on a whole new level. I'm wondering what settings people are using to throttle this use a bit on larger forums? I love the add-on, but my server is maxing out all day long on the CPU.
 
Thank you so much Andy for this great add-on. Just installed it.

I would appreciate if someone can tell me how to change the color where it says '' similar threads'' in the top of the listed threads.

tUwvGq.png
 
Put this in your EXTRA.css:

Code:
.similarThreads dd.main span {
    color: red;
}


Change the colour name (or code) to suit your needs.
 
Last edited:
  • Like
Reactions: KSA
Put this in you EXTRA.css:

.similarThreads dd.main span {
color: red;
}


Change the colour name (or code) to suit your needs.

Thanks.

I have placed the CSS in andy_similarthreads.css template and it worked perfectly fine.
 
Last edited:
been getting a lot of these errors lately - latest version.
PHP:
ErrorException: Invalid argument supplied for foreach() - library/Andy/SimilarThreads/ControllerPublic/Thread.php:253
Generated By: EWC & Clean Lane, Dec 5, 2014
Stack Trace
#0 /home2/*******/public_html/library/Andy/SimilarThreads/ControllerPublic/Thread.php(253): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/home2/truckmou...', 253, Array)
#1 /home2/*******/public_html/library/XenForo/FrontController.php(347): Andy_SimilarThreads_ControllerPublic_Thread->actionIndex()
#2 /home2/*******public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home2/*******/public_html/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(124) "https://**********/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Top Bottom