mirror of https://github.com/apache/archiva.git
[MRM-730]
-search bytecode index if not found in filecontent index git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@674768 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b9ec9fa88
commit
8d428ccfd1
|
@ -100,7 +100,7 @@ public class DefaultCrossRepositorySearch
|
|||
|
||||
public SearchResults searchForBytecode( String principal, List<String> selectedRepos, String term, SearchResultLimits limits )
|
||||
{
|
||||
List<RepositoryContentIndex> indexes = getHashcodeIndexes( principal, selectedRepos );
|
||||
List<RepositoryContentIndex> indexes = getBytecodeIndexes( principal, selectedRepos );
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -131,6 +131,11 @@ 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 )
|
||||
|
|
Loading…
Reference in New Issue