mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add rss to the search scope
This commit is contained in:
parent
9697ae2eca
commit
983f0dcb99
1 changed files with 10 additions and 3 deletions
|
|
@ -268,9 +268,14 @@ const parseFieldFilter = (
|
|||
// normalize the term to lower case
|
||||
const value = str.toLowerCase()
|
||||
|
||||
if (field === 'note') {
|
||||
field = 'highlights.annotation'
|
||||
nested = true
|
||||
switch (field.toUpperCase()) {
|
||||
case 'RSS':
|
||||
field = 'rssFeedUrl'
|
||||
break
|
||||
case 'NOTE':
|
||||
field = 'highlights.annotation'
|
||||
nested = true
|
||||
break
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
@ -357,6 +362,7 @@ export const parseSearchQuery = (query: string | undefined): SearchFilter => {
|
|||
'mode',
|
||||
'site',
|
||||
'note',
|
||||
'rss',
|
||||
],
|
||||
tokenize: true,
|
||||
})
|
||||
|
|
@ -419,6 +425,7 @@ export const parseSearchQuery = (query: string | undefined): SearchFilter => {
|
|||
}
|
||||
// term filters
|
||||
case 'subscription':
|
||||
case 'rss':
|
||||
case 'language': {
|
||||
const fieldFilter = parseFieldFilter(keyword.keyword, keyword.value)
|
||||
fieldFilter && result.termFilters.push(fieldFilter)
|
||||
|
|
|
|||
Loading…
Reference in a new issue