]> source.dussan.org Git - archiva.git/commitdiff
include the bytecode index to the searcheables in searchForTerm(..) instead of just...
authorMaria Odea B. Ching <oching@apache.org>
Tue, 15 Jul 2008 09:59:23 +0000 (09:59 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Tue, 15 Jul 2008 09:59:23 +0000 (09:59 +0000)
nothing

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@676854 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java

index 469ff679b7b5a4231c780b77032e535baa4a66cb..a2c813a19e209ffd67478d26d31f865952a08f4d 100644 (file)
@@ -123,6 +123,8 @@ public class DefaultCrossRepositorySearch
     public SearchResults searchForTerm( String principal, List<String> selectedRepos, String term, SearchResultLimits limits )
     {
         List<RepositoryContentIndex> indexes = getFileContentIndexes( principal, selectedRepos );
+        List<RepositoryContentIndex> bytecodeIndices = getBytecodeIndexes( principal, selectedRepos );        
+        indexes.addAll( bytecodeIndices );
 
         try
         {
@@ -131,11 +133,6 @@ public class DefaultCrossRepositorySearch
             SearchResults results = searchAll( query, limits, indexes );
             results.getRepositories().addAll( this.localIndexedRepositories );
             
-            if( results.getTotalHits() == 0 )
-            {
-                results = searchForBytecode( principal, selectedRepos, term, limits );             
-            }
-
             return results;
         }
         catch ( ParseException e )