when adding a new file tru the lucene consummer no need to scan the full repo : so using the new flag introduced in previous commit

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1159078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-08-18 08:20:27 +00:00
parent 0ea6774509
commit dc319ae9f9
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ public class NexusIndexerConsumer
// specify in indexing task that this is not a repo scan request!
ArtifactIndexingTask task =
new ArtifactIndexingTask( repository, artifactFile, ArtifactIndexingTask.Action.ADD, context, false );
// only update index we don't need to scan the full repo here
task.setOnlyUpdate( true );
try
{
log.debug( "Queueing indexing task '{}' to add or update the artifact in the index.", task );