diff options
author | Olivier Lamy <olamy@apache.org> | 2011-08-18 08:20:27 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-08-18 08:20:27 +0000 |
commit | dc319ae9f90dcfb06c86acd3510986f77a334d91 (patch) | |
tree | c96a71a879624874724991043356152923a167e8 | |
parent | 0ea6774509b2f863802c5fadeeb96421228952c0 (diff) | |
download | archiva-dc319ae9f90dcfb06c86acd3510986f77a334d91.tar.gz archiva-dc319ae9f90dcfb06c86acd3510986f77a334d91.zip |
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
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java index cfb400e3b..3e87693e9 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java @@ -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 ); |