public FlatSearchResponse flatSearch( Map<String, String> terms, String repositoryId, Integer from, Integer count, Integer hitLimit ) throws NoSuchRepositoryException { // We do not support "old" style search anymore return new FlatSearchResponse( null, 0, Collections.<ArtifactInfo> emptySet() ); }
/** * {@inheritDoc} */ public FlatSearchResponse flatSearch( final Map<String, String> terms, final String repositoryId, final Integer from, final Integer count, final Integer hitLimit ) throws NoSuchRepositoryException { if ( !canHandle( terms ) ) { return new FlatSearchResponse( null, 0, Collections.<ArtifactInfo> emptySet() ); } return m_lucene.searchArtifactFlat( terms.get( TERM_GROUP ), terms.get( TERM_ARTIFACT ), terms.get( TERM_VERSION ), terms.get( TERM_PACKAGING ), terms.get( TERM_CLASSIFIER ), repositoryId, from, count, hitLimit ); }
/** * {@inheritDoc} */ public FlatSearchResponse flatSearch( final Map<String, String> terms, final String repositoryId, final Integer from, final Integer count, final Integer hitLimit ) throws NoSuchRepositoryException { if ( !canHandle( terms ) ) { return new FlatSearchResponse( null, 0, Collections.<ArtifactInfo> emptySet() ); } return m_lucene.searchArtifactFlat( terms.get( TERM_KEYWORD ), repositoryId, from, count, hitLimit ); }
/** * {@inheritDoc} */ public FlatSearchResponse flatSearch( final Map<String, String> terms, final String repositoryId, final Integer from, final Integer count, final Integer hitLimit ) throws NoSuchRepositoryException { if ( !canHandle( terms ) ) { return new FlatSearchResponse( null, 0, Collections.<ArtifactInfo> emptySet() ); } return m_lucene.searchArtifactClassFlat( terms.get( TERM_CLASSNAME ), repositoryId, from, count, hitLimit ); }
public FlatSearchResponse searchFlatPaged( FlatSearchRequest request ) throws IOException { TreeSet<ArtifactInfo> result = new TreeSet<ArtifactInfo>( request.getArtifactInfoComparator() ); int totalHits = 0; for ( IndexingContext context : request.getContexts() ) { totalHits += searchFlat( request, result, context, request.getQuery(), request.getStart(), request.getCount() ); } return new FlatSearchResponse( request.getQuery(), totalHits, result ); }
return new FlatSearchResponse( req.getQuery(), -1, new HashSet<ArtifactInfo>() ); return new FlatSearchResponse( req.getQuery(), 0, new HashSet<ArtifactInfo>() );
return new FlatSearchResponse( request.getQuery(), totalHits, result );
return new FlatSearchResponse( req.getQuery(), -1, new HashSet<ArtifactInfo>() ); return new FlatSearchResponse( req.getQuery(), 0, new HashSet<ArtifactInfo>() );
return new FlatSearchResponse( null, -1, new HashSet<ArtifactInfo>() ); return new FlatSearchResponse( req.getQuery(), -1, new HashSet<ArtifactInfo>() ); return new FlatSearchResponse( req.getQuery(), 0, new HashSet<ArtifactInfo>() );