Java Code Examples for org.apache.lucene.search.spans.SpanCollector

The following examples show how to use org.apache.lucene.search.spans.SpanCollector. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: mtas   Source File: MtasSpanSequenceSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  for (QueueItem item : queueSpans) {
    item.sequenceSpans.spans.collect(collector);
  }
}
 
Example 2
Source Project: mtas   Source File: MtasSpanFullyAlignedWithSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  spans1.spans.collect(collector);
  spans2.spans.collect(collector);
}
 
Example 3
Source Project: mtas   Source File: MtasSpanStartSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  if (spans != null) {
    spans.collect(collector);
  }
}
 
Example 4
Source Project: mtas   Source File: MtasSpanNotSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  spans1.spans.collect(collector);
  spans2.spans.collect(collector);
}
 
Example 5
Source Project: mtas   Source File: MtasSpanPositionSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  // don't do anything
}
 
Example 6
Source Project: mtas   Source File: MtasSpanEndSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  if (spans != null) {
    spans.collect(collector);
  }
}
 
Example 7
Source Project: mtas   Source File: MtasSpanMatchNoneSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  // do nothing
}
 
Example 8
Source Project: mtas   Source File: MtasSpanIntersectingSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  spans1.spans.collect(collector);
  spans2.spans.collect(collector);
}
 
Example 9
Source Project: mtas   Source File: MtasSpanRecurrenceSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  spans.collect(collector);
}
 
Example 10
Source Project: mtas   Source File: MtasSpanMatchAllSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  // do nothing
}
 
Example 11
Source Project: mtas   Source File: MtasSpanPrecededBySpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  spans1.spans.collect(collector);
  spans2.spans.collect(collector);
}
 
Example 12
Source Project: mtas   Source File: MtasDisabledTwoPhaseIteratorSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  subSpans.collect(collector);
}
 
Example 13
Source Project: mtas   Source File: MtasMaximumExpandSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  subSpans.collect(collector);
}
 
Example 14
Source Project: mtas   Source File: MtasSpanUniquePositionSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  spans.collect(collector);
}
 
Example 15
Source Project: mtas   Source File: MtasExpandSpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  subSpans.collect(collector);
}
 
Example 16
Source Project: mtas   Source File: MtasSpanFollowedBySpans.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
  spans1.spans.collect(collector);
  spans2.spans.collect(collector);
}
 
Example 17
Source Project: pyramid   Source File: CustomNearSpansUnordered.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {
    for (Spans spans : subSpans) {
        spans.collect(collector);
    }
}
 
Example 18
Source Project: pyramid   Source File: PhraseCountQuery.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void collect(SpanCollector collector) throws IOException {

}