Convention ConfigurationGet Json Field Name Property
Gets or sets a method that returns the field name for the given property or field of a JSON object.
The default uses the member name as is, without any modifications.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public Func<MemberInfo, string> GetJsonFieldName { get; set; }VB
Public Property GetJsonFieldName As Func(Of MemberInfo, String)
Get
SetProperty Value
FuncMemberInfo, StringRemarks
You can configure Sphinx to automatically convert JSON field names, e.g. setting
json_autoconv_keynames = lowercase
in your sphinx.conf will convert all fields names to lower case. You'd then set this method to:
json_autoconv_keynames = lowercase
in your sphinx.conf will convert all fields names to lower case. You'd then set this method to:
GetJsonFieldName = info => info.Name.ToLowerInvariant();