Word Count Search

Word Count Search 1.4.3

No permission to download
It just means the word-count search will not be accurate
On install, i got this error :

Code:
An exception occurred: Call to undefined method SV_OptimizedListQueries_XenForo_Model_Search::getWordCountThreshold() in /home/XXXXXX/public_html/library/SV/WordCountSearch/Deferred/WordCountMigration.php on line 27

    SV_WordCountSearch_Deferred_WordCountMigration->execute() in XenForo/Model/Deferred.php at line 295
    XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
    XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
    XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
    XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 50
    XenForo_ViewRenderer_HtmlAdmin->renderRedirect() in XenForo/FrontController.php at line 617
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
    XenForo_FrontController->run() in /home/XXXXXX/public_html/admin.php at line 13

When uninstalling, i see 1 manual rebuild process which can't finish.

Code:
Server Error

Mysqli prepare error: Table 'XXXXXX_xffinal.xf_post_words' doesn't exist

    Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
    Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
    Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
    Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
    Zend_Db_Adapter_Abstract->fetchAll() in SV/WordCountSearch/Deferred/WordCountMigration.php at line 18
    SV_WordCountSearch_Deferred_WordCountMigration->execute() in XenForo/Model/Deferred.php at line 295
    XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
    XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
    XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 159
    XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 351
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /home/XXXXXX/public_html/admin.php at line 13

How to clear the manual rebuild process?

Is it safe to just empty the "xf_deferred" table?
 
Last edited:
On install, i got this error :

Code:
An exception occurred: Call to undefined method SV_OptimizedListQueries_XenForo_Model_Search::getWordCountThreshold() in /home/XXXXXX/public_html/library/SV/WordCountSearch/Deferred/WordCountMigration.php on line 27

    SV_WordCountSearch_Deferred_WordCountMigration->execute() in XenForo/Model/Deferred.php at line 295
    XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
    XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
    XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
    XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 50
    XenForo_ViewRenderer_HtmlAdmin->renderRedirect() in XenForo/FrontController.php at line 617
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
    XenForo_FrontController->run() in /home/XXXXXX/public_html/admin.php at line 13
That shouldn't happen. It means the add-on installer ran but the add-on itself wasn't installed. :(

When uninstalling, i see 1 manual rebuild process which can't finish.

Code:
Server Error

Mysqli prepare error: Table 'XXXXXX_xffinal.xf_post_words' doesn't exist

    Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
    Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
    Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
    Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
    Zend_Db_Adapter_Abstract->fetchAll() in SV/WordCountSearch/Deferred/WordCountMigration.php at line 18
    SV_WordCountSearch_Deferred_WordCountMigration->execute() in XenForo/Model/Deferred.php at line 295
    XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
    XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
    XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 159
    XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 351
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /home/XXXXXX/public_html/admin.php at line 13

How to clear the manual rebuild process?

Is it safe to just empty the "xf_deferred" table?
I'll push a 1.1.4 update which fixes the deferred tasks. Just update the files and they will then correctly stop.
 
  • Like
Reactions: Xon
Xon updated Word Count Search with a new update entry:

1.2.0 - Feature Update

  • Support sorting by word-count when searching (descending only).
  • Forum Options - sort/filter by word-count.
    filter-png.154265
    thread_display_open-png.154267

Read the rest of this update entry...
 
Last edited:
Xon updated Word Count Search with a new update entry:

1.4.2 - Maintenance update

  • Elasticsearch v6 support is supplied by Search Improvements
  • Prevent word-counts being unexpectedly applied to posts/thread which should not have a word count during bulk-inserts.
    • May require rebuilding threads search index, post search index is should be unaffected by extra processing that is done.
  • Tweak rounding to avoid showing "1000" words instead of "1k" words (and...

Read the rest of this update entry...
 
  • May require rebuilding threads search index, post search index is should be unaffected by extra processing that is done.
Do you mean i must rebuild thread search index?

What about post search index?
 
Do you mean i must rebuild thread search index?

What about post search index?
Some threads may have incorrect word counts associated with them in the search index. Under rebuilding cache, just doing threads is enough to fix it.

Posts are ok.
 
Back
Top Bottom