Hi Jose,
Could you describe your setup more? It's not actually possible (well
not recommended) to run Discovery (which uses Apache Solr) AND Lucene
(which is a separate search interface) simultaneously. Are you running
Discovery, or are you running the traditional Lucene-based search? By
default, DSpace 5.x uses Discovery.
https://wiki.duraspace.org/display/DSDOC5x/Discovery
If you are running Discovery, then it is notified of any updates to
items, etc. and will reindex individual items when notified. There's no
need to add any special code for that.
If you are still using Lucene, you might want to think about whether
it's worth moving to just using Discovery. In 5.x, we deprecated Lucene
searching, and it is being removed entirely in 6.x (coming soon). So,
while you can still use Lucene in 5.x, you'll eventually need to move to
using Discovery (with Solr) once 6.x is released.
- Tim
On 2/24/2016 3:46 PM, Jose Blanco wrote:
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
--
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.