code: @Override
    public MtasSpanWeight createWeight(IndexSearcher searcher,
        boolean needsScores, float boost) throws IOException {
      SpanWeight subWeight = query.createWeight(searcher, false, boost);
      SpanWeight ignoreWeight = null;
      if (ignoreQuery != null) {
        ignoreWeight = ignoreQuery.createWeight(searcher, false, boost);
      }
      return new SpanRecurrenceWeight(subWeight, ignoreWeight,
          maximumIgnoreLength, searcher,
          needsScores ? getTermContexts(subWeight) : null, boost);
    }
docs: /*
  (non-Javadoc)
  
  @see
  org.apache.lucene.search.spans.SpanQuery#createWeight(org.apache.lucene.
  search.IndexSearcher, boolean)