Exemplo n.º 1
0
 public override Scorer Scorer(IndexReader reader, bool scoreDocsInOrder, bool topScorer)
 {
     return(new SpanScorer(internalQuery.GetSpans(reader), this, similarity, reader.Norms(internalQuery.Field)));
 }
	    // :NOTE: getBoost and setBoost are not proxied to the maskedQuery
		// ...this is done to be more consistent with thigns like SpanFirstQuery
		
		public override Spans GetSpans(IndexReader reader)
		{
			return maskedQuery.GetSpans(reader);
		}
Exemplo n.º 3
0
		private void  GetPayloads(ICollection<byte[]> payloads, SpanQuery query)
		{
			Spans.Spans spans = query.GetSpans(reader);
			
			while (spans.Next() == true)
			{
				if (spans.IsPayloadAvailable())
				{
                    ICollection<byte[]> payload = spans.GetPayload();
                    foreach (byte[] bytes in payload)
                    {
                        payloads.Add(bytes);
                    }
				}
			}
		}