Method Build
Build(IndexReaderContext, Term)
Creates a TermContext from a top-level IndexReaderContext and the given Term. this method will lookup the given term in all context's leaf readers and register each of the readers containing the term in the returned TermContext using the leaf reader's ordinal.
Note: the given context must be a top-level context.
Declaration
public static TermContext Build(IndexReaderContext context, Term term)
Parameters
Type | Name | Description |
---|---|---|
IndexReaderContext | context | |
Term | term |
Returns
Type | Description |
---|---|
TermContext |