UBER-853 Add ydoc indexation (#3817)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2023-10-11 10:41:37 +07:00
committed by GitHub
parent 929d4e2feb
commit 8b9c90b388
15 changed files with 203 additions and 37 deletions
+8 -4
View File
@@ -101,7 +101,7 @@ async function createNullFullTextAdapter (): Promise<FullTextAdapter> {
}
async function createNullContentTextAdapter (): Promise<ContentTextAdapter> {
return {
async fetch (name: string, type: string, doc) {
async content (name: string, type: string, doc) {
return ''
},
metrics () {
@@ -132,10 +132,14 @@ export async function connect (handler: (tx: Tx) => void): Promise<ClientConnect
url: '',
stages: () => []
},
contentAdapter: {
url: '',
factory: createNullContentTextAdapter
contentAdapters: {
default: {
factory: createNullContentTextAdapter,
contentType: '',
url: ''
}
},
defaultContentAdapter: 'default',
workspace: getWorkspaceId('')
}
const serverStorage = await createServerStorage(conf, {