// Methods public SortableInMemoryIndexSearchContext(ILuceneIndex index) { Assert.ArgumentNotNull(index, "index"); var idx = new RAMDirectory(index.Directory); this._scope = new LockScope(idx); this._writer = index.CreateWriter(false); }