Example usage for org.apache.lucene.search.spans SpanCollector collectLeaf

List of usage examples for org.apache.lucene.search.spans SpanCollector collectLeaf

Introduction

In this page you can find the example usage for org.apache.lucene.search.spans SpanCollector collectLeaf.

Prototype

public void collectLeaf(PostingsEnum postings, int position, Term term) throws IOException;

Source Link

Document

Collect information from postings

Usage

From source file:nl.inl.blacklab.MockSpans.java

License:Apache License

@Override
public void collect(SpanCollector collector) throws IOException {
    collector.collectLeaf(postings, -1, null);
}

From source file:nl.inl.blacklab.MyTermSpans.java

License:Apache License

@Override
public void collect(SpanCollector collector) throws IOException {
    collector.collectLeaf(postings, position, term);
}