Boost tags and creator relevance in search results until we have proper tag data. This produces higher quality results.
@@ -47,10 +47,10 @@ def search(search_params, index, page_size, page=1) -> Response:
s = s.filter('bool', should=provider_filters, minimum_should_match=1)
# Search for keywords.
- keywords = ' '.join(search_params.data['q'].split(','))
+ keywords = ' '.join(search_params.data['q'].lower().split(','))
s = s.query("multi_match",
query=keywords,
- fields=['title', 'tag', 'creator'])
+ fields=['tags^3', 'creator^2', 'title'])
s.extra(track_scores=True)
search_response = s.execute()
