Hi Ivan, If you call IndexClient with -f the behaviour is "force" the clean (see the row that "destroy" the index, "force" parameters in this case is set to true -> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/discovery/SolrServiceImpl.java#L455) and after that updateIndex index all items as you said before.
p.s. we are linking to different branches but i think that the code is not different Regards, Andrea Il 07/11/2014 11:28, helix84 ha scritto: > On Fri, Nov 7, 2014 at 10:53 AM, Pascarelli Luigi Andrea > <l.pascare...@cineca.it> 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#L424-L425 > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette ------------------------------------------------------------------------------ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette