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: Similarity.NetAssembly: Lucene.Net.Contrib.Similarity (in Lucene.Net.Contrib.Similarity.dll) Version: 2.0.0.1
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