Package com.flaptor.indextank.index.scorer

Examples of com.flaptor.indextank.index.scorer.MatchFilter


   
    int totalCount = 0;

    Iterable<ScoredMatch> matches = matcher.decode(rawMatches, query.getRoot().getBoostedNorm());

    MatchFilter facetFilter = null;
    if (query.getFilteringFacets() != null) {
      facetFilter = facetingManager.getFacetFilter(query.getFilteringFacets());
    }
   
    for (ScoredMatch match : matches) {
      if (docFilter.apply(match.getDocId())) {
        if (facetFilter == null || facetFilter.matches(match.getDocId(), match.getScore(), query.getNow(), query.getVars())) {
          if (query.getRangeFilter() == null || query.getRangeFilter().matches(match.getDocId(), match.getScore(), query.getNow(), query.getVars())) {
              rescore(match, query, scoringFunctionIndex);
              faceter.computeDocument(match.getDocId());
             
              if (top.size() < n || top.peek().compareTo(match) > 0) {
View Full Code Here

TOP

Related Classes of com.flaptor.indextank.index.scorer.MatchFilter

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.