public ElasticSerializerConfiguration(IElasticMappingResolver elasticMappingResolver,
                                       bool saveChildObjectsAsWellAsParent = true, bool processChildDocumentsAsSeparateChildIndex = false,
                                       bool userDefinedRouting             = false)
 {
     ElasticMappingResolver                    = elasticMappingResolver;
     SaveChildObjectsAsWellAsParent            = saveChildObjectsAsWellAsParent;
     ProcessChildDocumentsAsSeparateChildIndex = processChildDocumentsAsSeparateChildIndex;
     UserDefinedRouting = userDefinedRouting;
 }
Exemple #2
0
 /// <inheritdoc />
 /// <summary>
 ///     Create Elastic Context
 /// </summary>
 /// <param name="connectionString">
 ///     Connection string which is used as the base URL for the HttpClient
 /// </param>
 /// <param name="elasticMappingResolver">
 ///     Resolver used for getting the index and type of a document type. The default
 ///     ElasticSerializerConfiguration is used in this ctor.
 /// </param>
 /// <param name="credentials">
 ///     Basic auth credentials for logging into the server.
 /// </param>
 /// <param name="isAllowDeleteForIndex"> </param>
 public ElasticContext(string connectionString, IElasticMappingResolver elasticMappingResolver, NetworkCredential credentials = null, bool isAllowDeleteForIndex = false) : this(connectionString, new ElasticSerializerConfiguration(elasticMappingResolver), credentials, isAllowDeleteForIndex)
 {
 }