mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fetch page savedAt, readingProgress from elastic
This commit is contained in:
parent
2bcf97d2e8
commit
26e7ab178e
2 changed files with 11 additions and 2 deletions
|
|
@ -206,7 +206,15 @@ export const searchHighlights = async (
|
|||
],
|
||||
from,
|
||||
size,
|
||||
_source: ['title', 'slug', 'url', 'createdAt', 'highlights'],
|
||||
_source: [
|
||||
'title',
|
||||
'slug',
|
||||
'url',
|
||||
'savedAt',
|
||||
'highlights',
|
||||
'readingProgressPercent',
|
||||
'readingProgressAnchorIndex',
|
||||
],
|
||||
}
|
||||
|
||||
console.log('searching highlights in elastic', JSON.stringify(searchBody))
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ export interface Highlight {
|
|||
suffix?: string | null
|
||||
annotation?: string | null
|
||||
sharedAt?: Date | null
|
||||
updatedAt?: Date | null
|
||||
updatedAt?: Date
|
||||
labels?: Label[]
|
||||
}
|
||||
|
||||
|
|
@ -226,6 +226,7 @@ export interface SearchItem {
|
|||
language?: string
|
||||
readAt?: Date
|
||||
savedAt: Date
|
||||
updatedAt?: Date
|
||||
}
|
||||
|
||||
const keys = ['_id', 'url', 'slug', 'userId', 'uploadFileId', 'state'] as const
|
||||
|
|
|
|||
Loading…
Reference in a new issue