Constructor DocumentValueSourceDictionary
DocumentValueSourceDictionary(IndexReader, String, ValueSource, String, String)
Creates a new dictionary with the contents of the fields named field
for the terms, payload
for the corresponding payloads, contexts
for the associated contexts and uses the weightsValueSource
supplied
to determine the score.
Declaration
public DocumentValueSourceDictionary(IndexReader reader, string field, ValueSource weightsValueSource, string payload, string contexts)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | |
System.String | field | |
ValueSource | weightsValueSource | |
System.String | payload | |
System.String | contexts |
DocumentValueSourceDictionary(IndexReader, String, ValueSource, String)
Creates a new dictionary with the contents of the fields named field
for the terms, payload
for the corresponding payloads
and uses the weightsValueSource
supplied to determine the
score.
Declaration
public DocumentValueSourceDictionary(IndexReader reader, string field, ValueSource weightsValueSource, string payload)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | |
System.String | field | |
ValueSource | weightsValueSource | |
System.String | payload |
DocumentValueSourceDictionary(IndexReader, String, ValueSource)
Creates a new dictionary with the contents of the fields named field
for the terms and uses the weightsValueSource
supplied to determine the
score.
Declaration
public DocumentValueSourceDictionary(IndexReader reader, string field, ValueSource weightsValueSource)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | |
System.String | field | |
ValueSource | weightsValueSource |