mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
When searching for highlights we should include document title, description, content as secondary indexes
This commit is contained in:
parent
ac3a83ffb5
commit
a04bfbb83e
1 changed files with 6 additions and 1 deletions
|
|
@ -179,7 +179,12 @@ export const searchHighlights = async (
|
|||
{
|
||||
multi_match: {
|
||||
query: query || '',
|
||||
fields: ['highlights.quote', 'highlights.annotation'],
|
||||
fields: [
|
||||
'highlights.quote^5',
|
||||
'title^3',
|
||||
'description^2',
|
||||
'content',
|
||||
],
|
||||
operator: 'and',
|
||||
type: 'cross_fields',
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue