Digital Point Search

Digital Point Search [Paid] 2.0.0

No permission to buy ($150.00)
Search deleted posts and threads doesn't seem to be working. That was the main reason I had installed it.
 
Search deleted posts and threads doesn't seem to be working. That was the main reason I had installed it.
Try to rebuild the search index (just a stupid suggestion:D ) I'm not using this addon and i'm also not having access to the code, but it could be the problem because all the new content types aren't in the search index by default
 
Try to rebuild the search index (just a stupid suggestion:D ) I'm not using this addon and i'm also not having access to the code, but it could be the problem because all the new content types aren't in the search index by default
I did that right after installing the addon.
 
Internally the system is more designed for use with Enhanced Search... Elastic search supports searching on arrays of integers, so we utilized that.
So there's no "real" limit with xenforo search, it's more "the way you use the search" ?
 
So there's no "real" limit with xenforo search, it's more "the way you use the search" ?
Yep... Internally it can be more efficient to have searchable arrays... The downside being that MySQL doesn't support an array column-type so that wouldn't work for the normal default MySQL search.
 
  • Like
Reactions: Dan
Then it breaks the whole site

Code:
An exception occurred: unserialize() expects parameter 1 to be string, array given in /home/z22se/public_html/library/XenForo/Model/DataRegistry.php on line 117

XenForo_Application::handlePhpError()
unserialize() in XenForo/Model/DataRegistry.php at line 117
XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 144
XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
XenForo_FrontController->run() in /home/z22se/public_html/index.php at line 13
How did you fix this error?
 
This was the reason why I needed to add:

PHP:
$config['cache']['frontendOptions']['automatic_serialization'] = true;

to the config file.
 
  • Like
Reactions: rdn
I get this server error come up, any idea on how to solve it?

Code:
Error Info
ErrorException: Array to string conversion - library/XenForo/Search/SourceHandler/MySqlFt.php:63
Generated By: Wingwalker84, 24 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(8, 'Array to string...', '/home/oakleyfo/...', 63, Array)
#1 /home/oakleyfo/public_html/library/XenForo/Search/SourceHandler/MySqlFt.php(63): implode(' ', Array)
#2 /home/oakleyfo/public_html/library/XenForo/Search/Indexer.php(44): XenForo_Search_SourceHandler_MySqlFt->insertIntoIndex('report', 305, '', 'SPAM talk to th...', 1389972853, Array, '', Array)
#3 /home/oakleyfo/public_html/library/DigitalPointSearch/Search/DataHandler/Report.php(31): XenForo_Search_Indexer->insertIntoIndex('report', 305, '', 'SPAM talk to th...', 1389972853, Array, '', Array)
#4 /home/oakleyfo/public_html/library/XenForo/Search/DataHandler/Abstract.php(238): DigitalPointSearch_Search_DataHandler_Report->_insertIntoIndex(Object(XenForo_Search_Indexer), Array, NULL)
#5 /home/oakleyfo/public_html/library/DigitalPointSearch/Search/DataHandler/Report.php(91): XenForo_Search_DataHandler_Abstract->insertIntoIndex(Object(XenForo_Search_Indexer), Array)
#6 /home/oakleyfo/public_html/library/DigitalPointSearch/DataWriter/ReportComment.php(35): DigitalPointSearch_Search_DataHandler_Report->quickIndex(Object(XenForo_Search_Indexer), Array)
#7 /home/oakleyfo/public_html/library/DigitalPointSearch/DataWriter/ReportComment.php(12): DigitalPointSearch_DataWriter_ReportComment->_indexForSearch()
#8 /home/oakleyfo/public_html/library/XenForo/DataWriter.php(1397): DigitalPointSearch_DataWriter_ReportComment->_postSave()
#9 /home/oakleyfo/public_html/library/XenForo/Model/Report.php(529): XenForo_DataWriter->save()
#10 /home/oakleyfo/public_html/library/XenForo/ControllerPublic/Post.php(470): XenForo_Model_Report->reportContent('post', Array, 'SPAM')
#11 /home/oakleyfo/public_html/library/XenForo/FrontController.php(337): XenForo_ControllerPublic_Post->actionReport()
#12 /home/oakleyfo/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#13 /home/oakleyfo/public_html/index.php(13): XenForo_FrontController->run()
#14 {main}
Request State
array(3) {
  ["url"] => string(46) "http://www.oakleyforum.com/posts/177241/report"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(5) {
    ["message"] => string(4) "SPAM"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(48) "/threads/replacement-lenses-for-ice-picks.11610/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
It means you have ES setup to have multiple copies of everything for redundancy (I believe ES defaults to 2 copies), but the duplicates aren't allocated to a server. Normally this means ES is set to have 2 copies, but you only have ES running on one server (no server *to* allocate the duplicates to).
 
I tried to address that issue by changing a few settings, but still can't get it to report as a single node with 1 shard

index.number_of_shards: 1
index.number_of_replicas: 0
network.host: 127.0.0.1
network.tcp.block: true
discovery.zen.ping.multicast.enabled: false
node.local: true
 
Not sure there's really a way around it. ElasticSearch is designed from the ground up to be used in a multi-server environment.

It's basically just reporting on the _cluster/health handler. Run this from your shell to see the exact data it's reporting on:
Code:
curl 'http://localhost:9200/_cluster/health?pretty'

The status returned by ES is a color as defined here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-health.html
The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated.
 
Hmm, wonder why it's not taking my settings then

Code:
# Set the number of shards (splits) of an index (5 by default):
#
# index.number_of_shards: 5

# Set the number of replicas (additional copies) of an index (1 by default):
#
# index.number_of_replicas: 1

# Note, that for development on a local machine, with small indices, it usually
# makes sense to "disable" the distributed features:
#
index.number_of_shards: 1
index.number_of_replicas: 0

Code:
[root@astra config]# curl 'http://localhost:9200/_cluster/health?pretty'
{
  "cluster_name" : "z22se",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 5,
  "active_shards" : 5,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 5
}
 
Back
Top Bottom