jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Damioli <cedric.dami...@anyware-tech.com>
Subject Re: can I reindex a whole repository?
Date Wed, 22 Nov 2006 18:32:35 GMT


Tobias Bocanegra a écrit :
> yes,
> - stop the repository
> - delete the search indexes in the workspace directories
> - start the repository
>
> the search handler will then traverse the repository and reindex all 
> items.
> regards, toby
One could imagine a programatical way of doing this. This is currently 
not allowed by API but this could be an interesting admin feature, 
allowing the following steps :

 - Stop the repository
 - Restarts the repository in "admin mode" (ie access only allowed to admin)
 - re-indexing : one could imagine 
repo.get*SearchManager(wspName).destroyAndRecreateQueryHandler(), or 
repo.destroyAndRecreateSearchManagers()
 - Stop the repository
 - Start it in real mode

What do you think about that ?

Regards,

-- 
Cédric Damioli
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 73 47
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com


Mime
View raw message