private static void WritePathField(JsonWriter jsonWriter, SuggestContextPathFieldInfo pathField) { jsonWriter.WritePropertyName(pathField.ESFieldName); jsonWriter.WriteStartObject(); jsonWriter.WritePropertyName("type"); jsonWriter.WriteValue(ElasticSearchClient.GetElasticSearchTypeFromFieldType(FieldType.text)); /*jsonWriter.WritePropertyName("index"); * jsonWriter.WriteValue(false); * jsonWriter.WritePropertyName("store"); * jsonWriter.WriteValue(false);*/ jsonWriter.WritePropertyName("include_in_all"); jsonWriter.WriteValue(false); jsonWriter.WriteEnd(); }
/// <summary> /// Initalizes a new instance of the <see cref="ContextPathValueProvider"/> class. /// </summary> /// <param name="pathFieldInfo">Path Field Informations</param> public ContextPathValueProvider(SuggestContextPathFieldInfo pathFieldInfo) { _Member = pathFieldInfo.MemberInfo; }