Package org.apache.lucene.search

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


    }

    return new Weight() {
      @Override
      public Explanation explain(AtomicReaderContext context, int doc) throws IOException {
        return baseWeight.explain(context, doc);
      }

      @Override
      public Query getQuery() {
        return baseQuery;
View Full Code Here


      }

      @Override
      public Explanation explain(final IndexReader reader, final int i)
          throws IOException {
        Explanation inner = weight.explain(reader, i);
        Bits predicate = PredicateQuery.this.predicate.get(reader);
        if (predicate.get(i)) {
          return inner;
        } else {
          Explanation result = new Explanation(0.0f,
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.