예제 #1
0
        public ICollection <DocumentMapping> Build(Configuration cfg)
        {
            Configure();

            var fluentMappings = GetMappingDocuments().ToList();

            if (assert)
            {
                foreach (var fluentMapping in fluentMappings)
                {
                    fluentMapping.AssertIsValid();
                }
            }
            var fluentMappingDefinitions = new FluentSearchMappingDefinition(fluentMappings);
            var builder          = new FluentSearchMappingBuilder(fluentMappingDefinitions);
            var documentMappings = fluentMappings
                                   .Select(m => builder.Build(m.DocumentType))
                                   .ToList();

            return(documentMappings);
        }
		public FluentSearchMappingBuilder(FluentSearchMappingDefinition mappingDefinition) 
			: base(mappingDefinition)
		{
		}
 public FluentSearchMappingBuilder(FluentSearchMappingDefinition mappingDefinition)
     : base(mappingDefinition)
 {
 }