Ivan,

Thank you for the additional details.

Today, with a bit more time and patience, I noticed that if I remove
individual items from the SOLR index, my facets do update appropriately.

The command line help was a bit misleading to me.

 -r <item handle>   remove an Item, Collection or Community from index
                    based on its handle

I presumed that I could remove the documents for an entire
community/collection in a single command.

Perhaps it would be useful to have a new command line option to force the
re-indexing of a specific community or collection.  It might also be useful
to allow multiple items to be deleted in a single command.  If this sounds
potentially useful to others, I will file an enhancement request.

Terry


On Fri, Jan 10, 2014 at 4:52 AM, helix84 <[email protected]> wrote:

> On Thu, Jan 9, 2014 at 7:23 PM, Terry Brady <[email protected]> wrote:
> > If I run this command, the log file indicates that my item has been
> > "removed", but I am unable to detect an impact caused by running this
> > option.  Looking at IndexClient.java and SolrServiceImpl.java I notice
> that
> > the change is not committed in SOLR after it is made.
>
> Hi Terry,
>
> it's entirely possible that it is so. Commits affect performance
> heavily, so they are delayed whenever possible to run as many changes
> in batch as reasonable using autocommit. You can see the default
> values for DSpace here:
>
>
> https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace/solr/search/conf/solrconfig.xml#L299
>
> If you want to force a commit manually, it's as easy as running:
>
> curl "http://localhost:8080/solr/search/update?stream.body=<commit/>"
>
>
> > On both of these occasions, I had to force the re-index of my entire
> > repository (update-discovery-index -f).
>
> That shouldn't be necessary. Once the Solr document for a particular
> handle is missing, update-discovery-index without the -f parameter
> should add it, just as if it were a newly created item.
>
> Let me know whether you got it working.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>



-- 
Terry Brady
Applications Programmer Analyst
Lauinger Information Technology
202-687-7053
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
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

Reply via email to