mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: Search, Remove common words from author matching.
This commit is contained in:
parent
d129c1d81f
commit
cdcf297829
@ -448,7 +448,7 @@ class SearchFilter(SearchQueryParser):
|
||||
vals = accessor(sr).split(',')
|
||||
elif locvalue == 'author2':
|
||||
m = self.IN_MATCH
|
||||
vals = accessor(sr).replace(',', ' ').split(' ')
|
||||
vals = re.sub(r'(^|\s)(and|not|or|a|the|is|of|,)(\s|$)', ' ', query).split(' ')
|
||||
else:
|
||||
vals = [accessor(sr)]
|
||||
if self._match(query, vals, m):
|
||||
|
Loading…
x
Reference in New Issue
Block a user