Creates a {@link DocIdSet} enumerating the documents that should be
permitted in search results. NOTE: null can be
returned if no documents are accepted by this Filter.
Note: This method will be called once per segment in
the index during searching. The returned {@link DocIdSet}
must refer to document IDs for that segment, not for
the top-level reader.
@param reader a {@link IndexReader} instance opened on the index currently
searched on. Note, it is likely that the provided reader does not
represent the whole underlying index i.e. if the index has more than
one segment the given reader only represents a single segment.
Namespace: Lucene.Net.SearchAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual DocIdSet GetDocIdSet( IndexReader reader ) |
Visual Basic |
---|
Public Overridable Function GetDocIdSet ( _ reader As IndexReader _ ) As DocIdSet |
Visual C++ |
---|
public: virtual DocIdSet^ GetDocIdSet( IndexReader^ reader ) |
Parameters
- reader
- Type: Lucene.Net.Index..::..IndexReader
[Missing <param name="reader"/> documentation for "M:Lucene.Net.Search.Filter.GetDocIdSet(Lucene.Net.Index.IndexReader)"]