Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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:

  1. Copy .../extension/ezfind/java to .../extension/ezfind/archive:
    $  cp -r extension/ezfind/java extension/ezfind/archive
    
  2. Run the following command in extension/ezfind/java:
    $ cd extension/ezfind/java
    $ java -jar start.jar
    
  3. 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
    
  4. 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.