On Fri, Nov 7, 2014 at 10:53 AM, Pascarelli Luigi Andrea <[email protected]> wrote: > I think that the help is wrong but the code says: > -b reindex all items without destroy the index > (https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/discovery/IndexClient.java#L117) > -f destroy the index and after that reindex all items > (https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/discovery/IndexClient.java#L126)
Hi Andrea, your description of -f seems incorrect. cleanIndex() first removes from index all items which no longer exist in the database [1]. updateIndex() then iterates over all items in the DB and updates them in the index. In my test, as expected, -b was about 10% faster than -f, but I'd say it's still within the error margin. [1] https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace-api/src/main/java/org/dspace/discovery/SolrServiceImpl.java#L424-L425 [2] https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace-api/src/main/java/org/dspace/discovery/SolrServiceImpl.java#L367-L369 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette ------------------------------------------------------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

