Method GetTermDocsEnum
GetTermDocsEnum(IndexReader, IBits, String, BytesRef)
Returns DocsEnum for the specified field &
term. This will return null
if the field or term does
not exist.
Declaration
public static DocsEnum GetTermDocsEnum(IndexReader r, IBits liveDocs, string field, BytesRef term)
Parameters
Returns
GetTermDocsEnum(IndexReader, IBits, String, BytesRef, DocsFlags)
Returns DocsEnum for the specified field &
term, with control over whether freqs are required.
Some codecs may be able to optimize their
implementation when freqs are not required. This will
return null
if the field or term does not exist. See
Docs(IBits, DocsEnum, DocsFlags).
Declaration
public static DocsEnum GetTermDocsEnum(IndexReader r, IBits liveDocs, string field, BytesRef term, DocsFlags flags)
Parameters
Returns