public class

SpanFilterResult

extends Object
java.lang.Object
   ↳ org.apache.lucene.search.SpanFilterResult

Class Overview

The results of a SpanQueryFilter. Wraps the BitSet and the position information from the SpanQuery

NOTE: This API is still experimental and subject to change.

Summary

Nested Classes
class SpanFilterResult.PositionInfo  
class SpanFilterResult.StartEnd  
Public Constructors
SpanFilterResult(DocIdSet docIdSet, List<SpanFilterResult.PositionInfo> positions)
Public Methods
DocIdSet getDocIdSet()
Returns the docIdSet
List<SpanFilterResult.PositionInfo> getPositions()
The first entry in the array corresponds to the first "on" bit.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SpanFilterResult (DocIdSet docIdSet, List<SpanFilterResult.PositionInfo> positions)

Parameters
docIdSet The DocIdSet for the Filter
positions A List of SpanFilterResult.PositionInfo objects

Public Methods

public DocIdSet getDocIdSet ()

Returns the docIdSet

public List<SpanFilterResult.PositionInfo> getPositions ()

The first entry in the array corresponds to the first "on" bit. Entries are increasing by document order

Returns
  • A List of PositionInfo objects