public override void AddField(IIndexableDataField field)
        {
            var fieldName  = field.Name;
            var fieldValue = Index.Configuration.FieldReaders.GetFieldValue(field);

            if (fieldValue == null || (fieldValue is string && string.IsNullOrEmpty(fieldValue.ToString())))
            {
                return;
            }

            var num = BoostingManager.ResolveFieldBoosting(field);

            //name = this.fieldNameTranslator.GetIndexFieldName(name, fieldValue.GetType(), this._culture);
            if (!IsMedia && IndexOperationsHelper.IsTextField(field))
            {
                StoreField(BuiltinFields.Content, fieldValue, true, null);
            }
            StoreField(fieldName, fieldValue, false, num);
        }
        public override void AddField(IIndexableDataField field)
        {
            AbstractSearchFieldConfiguration fieldConfiguration1 = this.Context.Index.Configuration.FieldMap.GetFieldConfiguration(field);
            object fieldValue = this.Index.Configuration.FieldReaders.GetFieldValue(field);
            string name       = field.Name;
            AzureSearchFieldConfiguration fieldSettings = this.Index.Configuration.FieldMap.GetFieldConfiguration(field) as AzureSearchFieldConfiguration;

            if (fieldSettings == null)
            {
                VerboseLogging.CrawlingLogDebug((Func <string>)(() => string.Format("Cannot resolve field settings for field id:{0}, name:{1}, typeKey:{2} - The field will not be added to the index.", field.Id, (object)field.Name, (object)field.TypeKey)));
            }
            else
            {
                object obj   = fieldConfiguration1.FormatForWriting(fieldValue);
                float  boost = BoostingManager.ResolveFieldBoosting(field);
                if (IndexOperationsHelper.IsTextField(field))
                {
                    AzureSearchFieldConfiguration fieldConfiguration2 = this.Index.Configuration.FieldMap.GetFieldConfiguration("_content") as AzureSearchFieldConfiguration;
                    this.AddField("_content", obj, fieldConfiguration2 ?? this.defaultTextField, 0.0f);
                }
                this.AddField(name, obj, fieldSettings, boost);
            }
        }