From: Edwin L. Punzalan Date: Thu, 16 Feb 2006 02:55:46 +0000 (+0000) Subject: Submitted by: Maria Odea Ching X-Git-Tag: archiva-0.9-alpha-1~934 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd1033c24f784973fd66303bff973cd76e076e59;p=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 --- diff --git a/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/PackageSearchAction.java b/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/PackageSearchAction.java index 81f92c96e..5f6acc812 100644 --- a/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/PackageSearchAction.java +++ b/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/PackageSearchAction.java @@ -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 ) );