/// <summary> /// Initializes a new instance of the <see cref="IndexDefinitionBuilder{TDocument,TReduceResult}"/> class. /// </summary> protected AbstractIndexDefinitionBuilder(string indexName) { _indexName = indexName ?? DocumentConventions.DefaultGetCollectionName(GetType()); if (_indexName.Length > 256) throw new ArgumentException("The index name is limited to 256 characters, but was: " + _indexName, nameof(indexName)); Stores = new Dictionary<Expression<Func<TReduceResult, object>>, FieldStorage>(); StoresStrings = new Dictionary<string, FieldStorage>(); Indexes = new Dictionary<Expression<Func<TReduceResult, object>>, FieldIndexing>(); IndexesStrings = new Dictionary<string, FieldIndexing>(); SuggestionsOptions = new HashSet<Expression<Func<TReduceResult, object>>>(); Analyzers = new Dictionary<Expression<Func<TReduceResult, object>>, string>(); AnalyzersStrings = new Dictionary<string, string>(); TermVectors = new Dictionary<Expression<Func<TReduceResult, object>>, FieldTermVector>(); TermVectorsStrings = new Dictionary<string, FieldTermVector>(); SpatialIndexes = new Dictionary<Expression<Func<TReduceResult, object>>, SpatialOptions>(); SpatialIndexesStrings = new Dictionary<string, SpatialOptions>(); Configuration = new IndexConfiguration(); }
protected AbstractCommonApiForIndexes() { Configuration = new IndexConfiguration(); }
public IndexDefinition() { _configuration = new IndexConfiguration(); }