mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
typeahead searchs by siteName
This commit is contained in:
parent
230df45ba1
commit
931c519d44
1 changed files with 9 additions and 2 deletions
|
|
@ -570,13 +570,20 @@ export const searchAsYouType = async (
|
|||
multi_match: {
|
||||
query,
|
||||
type: 'bool_prefix',
|
||||
fields: ['title', 'title._2gram', 'title._3gram'],
|
||||
fields: [
|
||||
'title',
|
||||
'title._2gram',
|
||||
'title._3gram',
|
||||
'siteName',
|
||||
'siteName._2gram',
|
||||
'siteName._3gram',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
_source: ['title', 'slug'],
|
||||
_source: ['title', 'slug', 'siteName'],
|
||||
size,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue