public virtual void AddFieldTypes(XmlNode configNode) { Assert.ArgumentNotNull(configNode, "configNode"); var fieldName = XmlUtil.GetAttribute("name", configNode); var storageType = XmlUtil.GetAttribute("storageType", configNode); var indexType = XmlUtil.GetAttribute("indexType", configNode); var vectorType = XmlUtil.GetAttribute("vectorType", configNode); var boost = XmlUtil.GetAttribute("boost", configNode); var searchField = new SearchField(storageType, indexType, vectorType, boost); FieldTypes.Add(fieldName.ToLowerInvariant(), searchField); }