Share » Forums » Extensions » eZ Find » documentation on...

documentation on bin/php/updatesearchindexsolr.php --db-host etc etc

documentation on bin/php/updatesearchindexsolr.php --db-host etc etc

Monday 22 March 2010 9:44:23 pm - 6 replies

Author Message

Bertrand Dunogier

Tuesday 23 March 2010 3:06:53 am

Hmm, first, why don't you feed the live solr index with content from the live database ?

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Geoff Bentley

Tuesday 23 March 2010 12:52:43 pm

Because we're trialling a very complicated customised schema in Solr, which is not ready for prime-time.

Paul Borgermans

Tuesday 23 March 2010 2:34:25 pm

There is no additional documentation apart from the built in help

php extension/ezfind/bin/php/updatesearchindexsolr.php -help

The DB initialisationis done after the siteaccess, so in principle using the additional parameters should override it (not tested myself though)

About the "driver": you should use the same as the ini settings (the aliases), so mysql, ezmysql for example are synonyms and usable as long as the corresponding ini settings are set (look at the default site.ini shipped)

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Bertrand Dunogier

Tuesday 23 March 2010 3:00:09 pm

@Geoff: what I would do is create a fake admin siteaccess for the remote instance, and run updatesearchindexsolr.php with the --siteaccess parameter. But be aware that if the binary files are not readable from the filesystem, they will not be indexed (if you use this feature).

Of course it would be better to consolidate the DB parameters, even though they will most likely work.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Geoff Bentley

Tuesday 23 March 2010 4:42:16 pm

Found one reason - code completely wrong in execute():

+++ updatesearchindexsolr.php (working copy)
@@ -449,7 +449,7 @@
{
if ( !empty( $this->Options[$param] ) )
{
- $optionString .= ' --' . $param . '=' . escapeshellarg( $this->Options['db-host'] );
+ $paramString .= ' --' . $param . '=' . escapeshellarg( $this->Options[$param] );
}
}

However, adding in the options causes the process to hang.

Geoff Bentley

Tuesday 23 March 2010 4:47:54 pm

The process was just taking its time (it had a lot to digest). Will submit this patch at http://issues.ez.no

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu