Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Allow data contributors to specify keywords to improve challenge search results #2692

Closed
1 task done
tschaffter opened this issue May 23, 2024 · 2 comments
Closed
1 task done
Assignees
Labels
backend Backend development

Comments

@tschaffter
Copy link
Member

What product(s) is this feature for?

OpenChallenges

Description

We are currently indexing the following challenge elements for the challenge search:

  • title
  • headline
  • description

We use the default tokenizer, which identify tokens using spaces and slashes. More importantly, searching for a substring doesn't work unless the substring appears as a token at least once in the above elements.

The goal of this ticket is ticket is to allow the registration of extra keywords/tokens for challenges.

The keywords are only supported at the entity level so no changes will be made to the API spec, API clients or web app.

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tschaffter tschaffter added the backend Backend development label May 23, 2024
@tschaffter tschaffter self-assigned this May 23, 2024
@tschaffter
Copy link
Member Author

It looks like Elasticsearch is also using parenthesis and dash as separators when tokenizing. For example, searching for "smc" will return this challenge, which does not include "smc" as a token separated by other known separators.

@tschaffter
Copy link
Member Author

tschaffter commented May 24, 2024

I reviewed the different search issues I could remember/think of. The search results look great and there is no need to make any improvement at this point.

If we feel the need to one day, we could add an additional property to challenge to the data model similar to the HTML keywords metadata property.

<meta name="keywords" content="HTML, CSS, JavaScript">

https://www.w3schools.com/tags/tag_meta.asp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend development
Projects
None yet
Development

No branches or pull requests

1 participant