mirror of https://github.com/apache/archiva.git
Submitted by: Maria Odea Ching
from dev list: - fix error in PackageSearchAction - changed ArtifactRepositoryIndexSearcher searcher = indexFactory.createArtifactRepositoryIndexSearcher( index ) to DefaultRepositoryIndexSearcher searcher = indexFactory.createDefaultRepositoryIndexSearcher( index ) git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@378147 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a6bde0961
commit
bd1033c24f
|
@ -21,10 +21,10 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
|
||||
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
||||
import org.apache.maven.repository.indexing.ArtifactRepositoryIndex;
|
||||
import org.apache.maven.repository.indexing.ArtifactRepositoryIndexSearcher;
|
||||
import org.apache.maven.repository.indexing.RepositoryIndexException;
|
||||
import org.apache.maven.repository.indexing.RepositoryIndexSearchException;
|
||||
import org.apache.maven.repository.indexing.RepositoryIndexingFactory;
|
||||
import org.apache.maven.repository.indexing.DefaultRepositoryIndexSearcher;
|
||||
import org.apache.maven.repository.indexing.query.SinglePhraseQuery;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -90,7 +90,7 @@ public class PackageSearchAction
|
|||
|
||||
ArtifactRepositoryIndex index = factory.createArtifactRepositoryIndex( indexPath, repository );
|
||||
|
||||
ArtifactRepositoryIndexSearcher searcher = factory.createArtifactRepositoryIndexSearcher( index );
|
||||
DefaultRepositoryIndexSearcher searcher = factory.createDefaultRepositoryIndexSearcher( index );
|
||||
|
||||
artifacts = searcher.search( new SinglePhraseQuery( key, searchTerm ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue