Setting it up
In order to activate the archiving function go to the following location:
...(root of your eZ Publish installation)/extension/ezfind/settings/ezfind.ini
In your ezfind.ini enable Solr attribute storage like this:
[IndexOptions] EnableSolrAttributeStorage=true
Next re-index the installation with this command:
$php extension/ezfind/bin/php/updatesearchindexsolr.php -s <admin site access>
Keep in mind that you must change <admin site access> with your admin site access.
Then go to your solr.ini, which is located here:
...(root of your eZ Publish installation)/extension/ezfind/settings/solr.ini
Edit this file by adding a new shard definition, like this:
Shards[] Shards[archive]=<location Solr archive>
The default setting is Shards[archive]=http://localhost:8984/solr/admin
Example setup
An easy example of how to do this is to copy the java sub-directory like described here:
- Copy .../extension/ezfind/java to .../extension/ezfind/archive:
$ cp -r extension/ezfind/java extension/ezfind/archive
- Run the following command in extension/ezfind/java:
$ cd extension/ezfind/java $ java -jar start.jar
- Then activate this second Solr instance in extension/ezfind/archive on a dedicated port:
$ cd extension/ezfind/archive $ java -jar -Djetty.port=8984 start.jar
- And then as described above assign this URI to the archive shard:
Shards[] Shards[archive]=http://localhost:8984/solr/admin
Geir Arne Waaler (05/10/2011 2:14 pm)
Geir Arne Waaler (05/10/2011 2:14 pm)
Comments
There are no comments.