I am currently using lucene and discovery in 5.1. In 4.2 I had this bit of
code in MediaFilterManager.java so that when ./dsapce filter-media ran the
lucene index would be updated. I wonder if it will work in 5.1 and if
perhaps there is a better way to do it. This is the code I had:
if (updateIndex)
{
if (!isQuiet)
{
System.out.println("Updating search index:");
}
DSIndexer.setBatchProcessingMode(true);
try
{
DSIndexer.updateIndex(c);
}
finally
{
DSIndexer.setBatchProcessingMode(false);
}
}
Thank you!
Jose
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.