internetarchive/fatcat-scholar

Search result localization and "boosting"

Open

#3 opened on Oct 2, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (15 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (85 stars)
PR merge metrics
 (PR metrics pending)

Description

For cases where the selected interface language has been explicitly selected, we could have that selection change show search queries are ranked and displayed. For example, documents in the selected language could be "boosted" to appear higher in the search results, and we could swap the title / original_title display order in some cases.

Off the top of my head, some things this would involve:

  • include language filter as a "boost" in elasticsearch query (along with existing boosts) to impact sorting when appropriate
  • conditional logic for title display preference (probably jinja2 macro)
  • possibly a query filter, parameter, or some other indication that this change is happening and a way to opt-out
  • testing of these changes for performance, search quality, and user experience
  • documentation ("help") updates to describe this change

Contributor guide