Okay, so something is definitely happening now... When I add the "SimpleSearchIndexAll" snippet to a page and load it, I get a 500 server error, but the script definitely runs as my Solr Admin shows an increase in "numDocs". I'm getting errors though (I won't post the whole log but here's the gist of it):
[2016-06-14 00:38:14] (ERROR @ /home/townofco/core/components/simplesearch/model/simplesearch/driver/simplesearchdriversolr.class.php : 248) Error adding Document to index on Solr server: ERROR: [doc=11] Error adding field 'content'='[[~152]]' msg=For input string: "[[~152]]"
[2016-06-14 00:38:14] (ERROR @ /home/townofco/core/components/simplesearch/model/simplesearch/driver/simplesearchdriversolr.class.php : 248) Error adding Document to index on Solr server: ERROR: [doc=13] Error adding field 'content'='http://www.discovercomoxvalley.com/' msg=For input string: "http://www.discovercomoxvalley.com/"
[2016-06-14 00:38:14] (ERROR @ /home/townofco/core/components/simplesearch/model/simplesearch/driver/simplesearchdriversolr.class.php : 248) Error adding Document to index on Solr server: ERROR: [doc=14] Error adding field 'content'='http://www.investcomoxvalley.com/' msg=For input string: "http://www.investcomoxvalley.com/"
[2016-06-14 00:38:15] (ERROR @ /home/townofco/core/components/simplesearch/model/simplesearch/driver/simplesearchdriversolr.class.php : 248) Error adding Document to index on Solr server: ERROR: [doc=16] Error adding field 'content'='[[SimpleSearchIndexAll]]
[2016-06-14 00:38:15] (ERROR @ /home/townofco/core/components/simplesearch/model/simplesearch/driver/simplesearchdriversolr.class.php : 248) Error adding Document to index on Solr server: ERROR: [doc=25] Error adding field 'content'='http://www.comoxseniors.ca/' msg=For input string: "http://www.comoxseniors.ca/"
[2016-06-14 00:38:15] (ERROR @ /home/townofco/core/components/simplesearch/model/simplesearch/driver/simplesearchdriversolr.class.php : 248) Error adding Document to index on Solr server: ERROR: [doc=26] Error adding field 'content'='http://bctransit.com/comox-valley/home' msg=For input string: "http://bctransit.com/comox-valley/home"
It looks like Solr doesn't like certain strings? There are a few more that show a similar error followed by the entire page's HTML.
I also opened the file in the above error messages (simplesearchdriversolr.class.php) and changed the following lines to match the sisea System Settings:
public function initialize() {
$this->_connectionOptions = array(
'hostname' => $this->modx->getOption('sisea.solr.hostname',null,'67.231.17.10'),
'port' => $this->modx->getOption('sisea.solr.port',null,'8983'),
'path' => $this->modx->getOption('sisea.solr.path',null,'solr/cmx'),
'login' => $this->modx->getOption('sisea.solr.username',null,''),
'password' => $this->modx->getOption('sisea.solr.password',null,''),
'timeout' => $this->modx->getOption('sisea.solr.timeout',null,30),
'secure' => $this->modx->getOption('sisea.solr.ssl',null,false),
'ssl_cert' => $this->modx->getOption('sisea.solr.ssl_cert',null,''),
'ssl_key' => $this->modx->getOption('sisea.solr.ssl_key',null,''),
'ssl_keypassword' => $this->modx->getOption('sisea.solr.ssl_keypassword',null,''),
'ssl_cainfo' => $this->modx->getOption('sisea.solr.ssl_cainfo',null,''),
'ssl_capath' => $this->modx->getOption('sisea.solr.ssl_capath',null,''),
'proxy_host' => $this->modx->getOption('sisea.solr.proxy_host',null,''),
'proxy_port' => $this->modx->getOption('sisea.solr.proxy_port',null,''),
'proxy_login' => $this->modx->getOption('sisea.solr.proxy_username',null,''),
'proxy_password' => $this->modx->getOption('sisea.solr.proxy_password',null,''),
);
I really hope someone can chime in with a suggestion! It seems like I'm getting closer but I'm way above my head and quickly running out of ideas...
UPDATE: Indexing Resources aside, here's the error I get when I try a search on my indexed PDFs:
[2016-06-14 01:22:53] (ERROR @ /home/townofco/core/components/simplesearch/model/simplesearch/driver/simplesearchdriversolr.class.php : 216) Error running query on Solr server: undefined field deleted
[ed. note: matthewmeredith last edited this post 7 years, 10 months ago.]