mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
UBER-853 Add ydoc indexation (#3817)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
@@ -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, () => {})
|
||||
|
||||
Reference in New Issue
Block a user