Resource icon

Word Count Search 2.0.3

No permission to download


Well-known member
Xon submitted a new resource: - Word-count range searches

Adds the ability to-do word-count range searches, sort by word count in search.
Forum listings can be sorted and filter by word-count.

Note; supports MySQL or ElasticSearch (1.x -5.x)

Works with the following Content Types:
  • Posts.
Post-Install Instructions

Rebuild search index for posts. Rebuild search index for threads if threadmarks are installed


I recommend using...
Read more about this resource...

Mike Edge

Well-known member
Hi @Xon after installing, trying to rebuild cache I receive this error

InvalidArgumentException: Attempted to convert NULL to integer [word_count] in src/XF/Mvc/Entity/Entity.php at line 685
[*]XF\Mvc\Entity\Entity->_castValueToType() insrc/XF/Mvc/Entity/Entity.php at line 572
[*]XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 502
[*]XF\Mvc\Entity\Entity->__set() insrc/addons/SV/WordCountSearch/XF/Search/Data/Thread.php at line 37
[*]SV\WordCountSearch\XF\Search\Data\Thread->getMetaData() insrc/XF/Search/Data/Thread.php at line 43
[*]XF\Search\Data\Thread->getIndexData() in src/XF/Search/Data/Post.phpat line 40
[*]XF\Search\Data\Post->getIndexData() in src/XF/Search/Search.php at line 37
[*]XF\Search\Search->index() in src/XF/Search/Search.php at line 59
[*]XF\Search\Search->indexEntities() in src/XF/Search/Search.php at line 85
[*]XF\Search\Search->indexRange() in src/XF/Job/SearchRebuild.php at line57
[*]XF\Job\SearchRebuild->run() in src/XF/Job/Manager.php at line 241
[*]XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line187
[*]XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 103
[*]XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120
[*]XF\Admin\Controller\Tools->actionRunJob() insrc/XF/Mvc/Dispatcher.php at line 249
[*]XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line88
[*]XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line41
[*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1863
[*]XF\App->run() in src/XF.php at line 328
[*]XF::runApp() in admin.php at line 13
I'm using ES RC3 with Elasticsearch 6.x


Well-known member
The word-count on threads isn't fully working yet (it depends on Threadmarks which haven't been fully ported to XF2 yet), but I'll bugfix that