Package org.apache.maven.index

Examples of org.apache.maven.index.SearchType


  {
    if (sha1Checksum == null || sha1Checksum.length() > 40) {
      return IteratorSearchResponse.TOO_MANY_HITS_ITERATOR_SEARCH_RESPONSE;
    }

    SearchType searchType = sha1Checksum.length() == 40 ? SearchType.EXACT : SearchType.SCORED;

    BooleanQuery bq = new BooleanQuery();

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


      if (searcher == null) {
        throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, "Requested search query is not supported");
      }

      SearchType searchType = searcher.getDefaultSearchType();

      if (exact != null) {
        searchType = exact ? SearchType.EXACT : SearchType.SCORED;
      }
View Full Code Here

                                               final Boolean expandClassifier, final Boolean collapseResults)
      throws NoSuchRepositoryException, ResourceException, IOException
  {
    for (Searcher searcher : searchers) {
      if (searcher.canHandle(terms)) {
        SearchType searchType = searcher.getDefaultSearchType();

        if (exact != null) {
          if (exact) {
            searchType = SearchType.EXACT;
          }
View Full Code Here

TOP

Related Classes of org.apache.maven.index.SearchType

Copyright © 2018 www.massapicom. 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.