Forums / Extensions / eZ Find / Cleaning all indexes in ezFind

Cleaning all indexes in ezFind

Author Message

Mirko Battisti

Wednesday 29 April 2009 5:09:33 am

Hello everybody.

We have one installation of ezFind(1.0.1) that serves 6 different eZPublish(3.10) websites.
I think we messed it up a bit in the beginning, and the impression is that we have old indexes that get never deleted. We have a cronjob that calls updatesearchindexsolr every night. We tried to call the updatesearchindexsolr with the "--clean" option, but no luck:
the index folder is really big (almost 4 GB) for no apparent reason (we don't have that many contents).
Now, I'd like to restart from a clean situation, so the question is:

Is there a way to clean all the indexes then to re-create them?

I tried to move the index folder from where it is and launch the update... script: it creates the folder, but no files are written inside of it.

Any help is appreciated,
thanks!
Mirko.

Sylvain Gogel

Tuesday 05 May 2009 2:45:49 am

you can use

php extension/ezfind/bin/php/updatesearchindexsolr.php --clean --php-exec=php -conc=2 -s [admin site access]

for each of your applications

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

Mirko Battisti

Thursday 07 May 2009 2:55:31 am

thanks for your reply.

The command you suggested doesn't work. It says:
extension/ezfind/bin/php/updatesearchindexsolr.php: invalid option '--php-exec'

Are you sure I can use that command with ezFind1.0.1? Or is it maybe an ezFind 2.0 command?

Thanks,
Mirko.

Alex Yes

Friday 08 May 2009 1:42:32 am

Hello Mirko,

try

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

and you will see which options are possible.

Alex