Examples of scoresDocsOutOfOrder()


Examples of org.apache.lucene.search.Weight.scoresDocsOutOfOrder()

        if (sort != null) {
          Weight w = q.weight(searcher);
          TopFieldCollector collector = TopFieldCollector.create(sort, numHits,
                                                                 true, withScore(),
                                                                 withMaxScore(),
                                                                 !w.scoresDocsOutOfOrder());
          searcher.search(w, null, collector);
          hits = collector.topDocs();
        } else {
          hits = searcher.search(q, numHits);
        }
View Full Code Here

Examples of org.apache.lucene.search.Weight.scoresDocsOutOfOrder()

    //copied from IndexSearcher#search
    //we only accept indexSearcher atm which means we can copy its the Collector creation strategy
    final int maxDocs = Math.min( n, searcher.getSearcher().maxDoc() );
    final Weight weight = preparedQuery.weight( searcher.getSearcher() );
    if ( sort == null ) {
      topCollector = TopScoreDocCollector.create(maxDocs, !weight.scoresDocsOutOfOrder());
    }
    else {
      boolean fillFields = true;
      topCollector = TopFieldCollector.create(
          sort,
View Full Code Here

Examples of org.apache.lucene.search.Weight.scoresDocsOutOfOrder()

          sort,
          maxDocs,
              fillFields,
          searcher.isFieldSortDoTrackScores(),
          searcher.isFieldSortDoMaxScore(),
          !weight.scoresDocsOutOfOrder()
      );
    }
    maybeTimeLimitingCollector = topCollector;
    boolean timeoutAt0 = false;
    if ( timeoutManager.getType() == TimeoutManager.Type.LIMIT ) {
View Full Code Here

Examples of org.apache.lucene.search.Weight.scoresDocsOutOfOrder()

          if (sort != null) {
            Weight w = searcher.createNormalizedWeight(q);
            TopFieldCollector collector = TopFieldCollector.create(sort, numHits,
                                                                   true, withScore(),
                                                                   withMaxScore(),
                                                                   !w.scoresDocsOutOfOrder());
            searcher.search(w, null, collector);
            hits = collector.topDocs();
          } else {
            hits = searcher.search(q, numHits);
          }
View Full Code Here

Examples of org.apache.lucene.search.Weight.scoresDocsOutOfOrder()

        if (sort != null) {
          Weight w = q.weight(searcher);
          TopFieldCollector collector = TopFieldCollector.create(sort, numHits,
                                                                 true, withScore(),
                                                                 withMaxScore(),
                                                                 !w.scoresDocsOutOfOrder());
          searcher.search(w, null, collector);
          hits = collector.topDocs();
        } else {
          hits = searcher.search(q, numHits);
        }
View Full Code Here

Examples of org.apache.lucene.search.Weight.scoresDocsOutOfOrder()

          if (sort != null) {
            Weight w = searcher.createNormalizedWeight(q);
            TopFieldCollector collector = TopFieldCollector.create(sort, numHits,
                                                                   true, withScore(),
                                                                   withMaxScore(),
                                                                   !w.scoresDocsOutOfOrder());
            searcher.search(w, null, collector);
            hits = collector.topDocs();
          } else {
            hits = searcher.search(q, numHits);
          }
View Full Code Here

Examples of org.apache.lucene.search.Weight.scoresDocsOutOfOrder()

          if (sort != null) {
            Weight w = q.weight(searcher);
            TopFieldCollector collector = TopFieldCollector.create(sort, numHits,
                                                                   true, withScore(),
                                                                   withMaxScore(),
                                                                   !w.scoresDocsOutOfOrder());
            searcher.search(w, null, collector);
            hits = collector.topDocs();
          } else {
            hits = searcher.search(q, numHits);
          }
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.