Package com.flaptor.indextank.index.results

Examples of com.flaptor.indextank.index.results.SimpleScoredDocIds


    }
    List<ScoredMatch> list = Lists.newArrayList(new ScoredMatch[top.size()]);
    for (int i = top.size()-1; i >= 0; i--) {
        list.set(i, top.poll());
        }
    return new SimpleScoredDocIds(list, n, totalCount, faceter.getFacets());
  }
View Full Code Here


    if (queryStr != null) {
      docId = this.getPromotedDocId(queryStr.toLowerCase());
    }
    if (docId != null) {
      ScoredMatch match = new ScoredMatch(Double.MAX_VALUE, new DocId(docId));
      return new SimpleScoredDocIds(
              ImmutableList.of(match), limit, 1, Maps.<String, Multiset<String>>newHashMap());
    }
    return new SimpleScoredDocIds(ImmutableList.<ScoredMatch>of(), limit, 0, Maps.<String, Multiset<String>>newHashMap());
  }
View Full Code Here

        logger.debug("(Search) historic searcher took: " + (currentStart - historyStart) + " ms., current searcher took: " +
                + (endSearch - currentStart) + " ms., merge took: " + (end - endSearch) + " ms.");
       
        Map<String, Multiset<String>> facets = FacetingManager.mergeFacets(history.getFacetingResults(), current.getFacetingResults());
       
    return new SimpleScoredDocIds(results, limit, matches, facets);
  }
View Full Code Here

TOP

Related Classes of com.flaptor.indextank.index.results.SimpleScoredDocIds

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.