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
@@ -31,7 +31,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: () => new MeasureMetricsContext('', {})
@@ -66,10 +66,14 @@ export async function start (port: number, host?: string): Promise<void> {
stages: () => []
},
metrics: new MeasureMetricsContext('', {}),
contentAdapter: {
url: '',
factory: createNullContentTextAdapter
contentAdapters: {
default: {
factory: createNullContentTextAdapter,
contentType: '',
url: ''
}
},
defaultContentAdapter: 'default',
workspace: getWorkspaceId('')
}
return createPipeline(ctx, conf, [], false, () => {})