• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Word Count Search 2.0.3

No permission to download

Xon

Well-known member
#1
Xon submitted a new resource:

https://github.com/Xon/XenForo2-WordCountSearch - 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

Installation

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

Mike Edge

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

Code:
InvalidArgumentException: Attempted to convert NULL to integer [word_count] in src/XF/Mvc/Entity/Entity.php at line 685
[LIST=1]
[*]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
[/LIST]
I'm using ES RC3 with Elasticsearch 6.x
 

Xon

Well-known member
#5
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