Examples of IteratorSearchRequest


Examples of org.apache.maven.index.IteratorSearchRequest

    // bq.add( q5, BooleanClause.Occur.SHOULD );
    //
    // bq.add( q6, BooleanClause.Occur.SHOULD );
    // }

    IteratorSearchRequest req = createRequest(bq, from, count, hitLimit, uniqueRGA, filters);

    req.getMatchHighlightRequests().add(new MatchHighlightRequest(MAVEN.GROUP_ID, q1, MatchHighlightMode.HTML));
    req.getMatchHighlightRequests().add(new MatchHighlightRequest(MAVEN.ARTIFACT_ID, q2, MatchHighlightMode.HTML));

    return searchIterator(repositoryId, req);
  }
View Full Code Here

Examples of org.apache.maven.index.IteratorSearchRequest

      term = term.substring(0, term.length() - 6);
    }

    Query q = constructQuery(MAVEN.CLASSNAMES, term, searchType);

    IteratorSearchRequest req = createRequest(q, from, count, hitLimit, false, filters);

    req.getMatchHighlightRequests().add(new MatchHighlightRequest(MAVEN.CLASSNAMES, q, MatchHighlightMode.HTML));

    return searchIterator(repositoryId, req);
  }
View Full Code Here

Examples of org.apache.maven.index.IteratorSearchRequest

      else {
        bq.add(constructQuery(MAVEN.CLASSIFIER, cTerm, searchType), BooleanClause.Occur.MUST);
      }
    }

    IteratorSearchRequest req = createRequest(bq, from, count, hitLimit, uniqueRGA, filters);

    return searchIterator(repositoryId, req);
  }
View Full Code Here

Examples of org.apache.maven.index.IteratorSearchRequest

    if (sha1Checksum != null) {
      bq.add(constructQuery(MAVEN.SHA1, sha1Checksum, searchType), BooleanClause.Occur.MUST);
    }

    IteratorSearchRequest req = createRequest(bq, from, count, hitLimit, false, filters);

    return searchIterator(repositoryId, req);
  }
View Full Code Here

Examples of org.apache.maven.index.IteratorSearchRequest

    if (ctx == null) {
      return IteratorSearchResponse.empty(pq);
    }

    // to have sorted results by version in descending order
    final IteratorSearchRequest sreq = new IteratorSearchRequest(pq, ctx);
    // filter that filters out classified artifacts
    final ClassifierArtifactInfoFilter classifierFilter = new ClassifierArtifactInfoFilter();

    // combine it with others if needed (unused in cli, but perm filtering in server!)
    if (request.getArtifactInfoFilter() != null) {
      final AndMultiArtifactInfoFilter andArtifactFilter =
          new AndMultiArtifactInfoFilter(Arrays.asList(new ArtifactInfoFilter[]{
              classifierFilter,
              request.getArtifactInfoFilter()
          }));
      sreq.setArtifactInfoFilter(andArtifactFilter);
    }
    else {
      sreq.setArtifactInfoFilter(classifierFilter);
    }

    return indexer.searchIterator(sreq);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.