Use legacy IndexSearch implementation: search with a DirectoryReader rather than passing a single hit collector to multiple SegmentReaders.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[ObsoleteAttribute("will be removed in Lucene 3.0.")]
public virtual void SetUseLegacySearch(
	bool legacy
)
Visual Basic
<ObsoleteAttribute("will be removed in Lucene 3.0.")> _
Public Overridable Sub SetUseLegacySearch ( _
	legacy As Boolean _
)
Visual C++
[ObsoleteAttribute(L"will be removed in Lucene 3.0.")]
public:
virtual void SetUseLegacySearch(
	bool legacy
)

Parameters

legacy
Type: System..::..Boolean
true for legacy behavior

See Also