public IIndexCreator StartCreatingIndex(SearchConditions searchConditions) { string indexKeyInCache = this.GetIndexKeyInCache(searchConditions.Key, this._hashKeyValue); if (indexKeyInCache.Length > MaxKeyLength) { this.Log("Index key ({0}) is too long", searchConditions.Key); return(null); } var creator = new EnyimIndexCreator(this, indexKeyInCache, searchConditions); if (!creator.StartCreatingIndex()) { this.Log("Failed to start creating index ({0})", searchConditions.Key); return(null); } return(creator); }
public IIndexCreator StartCreatingIndex(SearchConditions searchConditions) { string indexKeyInCache = this.GetIndexKeyInCache(searchConditions.Key, this._hashKeyValue); if (indexKeyInCache.Length > MaxKeyLength) { this.Log("Index key ({0}) is too long", searchConditions.Key); return null; } var creator = new EnyimIndexCreator(this, indexKeyInCache, searchConditions); if (!creator.StartCreatingIndex()) { this.Log("Failed to start creating index ({0})", searchConditions.Key); return null; } return creator; }