Sets the field names that will be used when generating the 'More Like This' query. Set this to null for the field names to be determined at runtime from the IndexReader provided in the constructor.

Namespace: Lucene.Net.Search.Similar
Assembly: Lucene.Net.Contrib.Queries (in Lucene.Net.Contrib.Queries.dll) Version: 2.9.2.0 (2.9.2)

Syntax

C#
public void SetFieldNames(
	string[] fieldNames
)
Visual Basic
Public Sub SetFieldNames ( _
	fieldNames As String() _
)
Visual C++
public:
void SetFieldNames(
	array<String^>^ fieldNames
)

Parameters

fieldNames
Type: array<System..::..String>[]()[][]
the field names that will be used when generating the 'More Like This' query.

See Also