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
{
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 )