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
{
LuceneQuery query = new LuceneQuery( parser.parse( term ) );
SearchResults results = searchAll( query, limits, indexes );
results.getRepositories().addAll( this.localIndexedRepositories );
+
+ if( results.getTotalHits() == 0 )
+ {
+ results = searchForBytecode( principal, selectedRepos, term, limits );
+ }
return results;
}