mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-23 23:38:51 +01:00
strip ending y for better results on Search Vectors
This commit is contained in:
parent
6ee83432bc
commit
d2bf457def
@ -120,7 +120,7 @@ class SearchRSSFeed(Feed):
|
||||
# same as on files.views.MediaSearch: move this processing to a prepare_query function
|
||||
query = helpers.clean_query(query)
|
||||
q_parts = [
|
||||
q_part.strip("y")
|
||||
q_part.rstrip("y")
|
||||
for q_part in query.split()
|
||||
if q_part not in STOP_WORDS
|
||||
]
|
||||
|
@ -735,7 +735,7 @@ class MediaSearch(APIView):
|
||||
# move this processing to a prepare_query function
|
||||
query = clean_query(query)
|
||||
q_parts = [
|
||||
q_part.strip("y")
|
||||
q_part.rstrip("y")
|
||||
for q_part in query.split()
|
||||
if q_part not in STOP_WORDS
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user