Exemple #1
0
 public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs)
 {
     if (m_stats == null)
     {
         return(null);
     }
     else
     {
         return(new SpanScorer(m_query.GetSpans(context, acceptDocs, m_termContexts), this, m_similarity.GetSimScorer(m_stats, context)));
     }
 }
        // :NOTE: getBoost and setBoost are not proxied to the maskedQuery
        // ...this is done to be more consistent with things like SpanFirstQuery

        public override Spans GetSpans(AtomicReaderContext context, IBits acceptDocs, IDictionary <Term, TermContext> termContexts)
        {
            return(maskedQuery.GetSpans(context, acceptDocs, termContexts));
        }