}
else
{
- if( searchResultsOnly && !completeQueryString.equals( "" ) )
+ try
{
- results = crossRepoSearch.searchForTerm( getPrincipal(), selectedRepos, q, limits, parseCompleteQueryString() );
- }
- else
- {
- completeQueryString = "";
- //results = crossRepoSearch.searchForTerm( getPrincipal(), selectedRepos, q, limits );
- try
+ if( searchResultsOnly && !completeQueryString.equals( "" ) )
{
- results = getNexusSearch().search( getPrincipal(), selectedRepos, q, limits, null );
+ //results = crossRepoSearch.searchForTerm( getPrincipal(), selectedRepos, q, limits, parseCompleteQueryString() );
+ results = getNexusSearch().search( getPrincipal(), selectedRepos, q, limits, parseCompleteQueryString() );
}
- catch ( RepositorySearchException e )
+ else
{
- addActionError( e.getMessage() );
- return ERROR;
+ completeQueryString = "";
+ //results = crossRepoSearch.searchForTerm( getPrincipal(), selectedRepos, q, limits );
+ results = getNexusSearch().search( getPrincipal(), selectedRepos, q, limits, null );
}
}
+ catch ( RepositorySearchException e )
+ {
+ addActionError( e.getMessage() );
+ return ERROR;
+ }
}
if ( results.isEmpty() )