]> source.dussan.org Git - archiva.git/commitdiff
Submitted by: Maria Odea Ching
authorEdwin L. Punzalan <epunzalan@apache.org>
Thu, 16 Feb 2006 02:55:46 +0000 (02:55 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Thu, 16 Feb 2006 02:55:46 +0000 (02:55 +0000)
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

maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/PackageSearchAction.java

index 81f92c96e52ca14e66f3ab476297c91c8d36fb0e..5f6acc812efa8abb745f7438195f383736938a69 100644 (file)
@@ -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 ) );