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

Add search by language functionality #667

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

addie9800
Copy link
Collaborator

As mentioned in #638 by @MaxDall , we need a better solution to handle different languages. This PR is a proposal for a solution to this issue. The idea is that you can tag each URLSource object, with the corresponding languages. It would be ideal to do it at URLSource level, since some publishers differentiate their sitemaps/feeds by language and we could then do the same.

Once the sources are tagged, we can then use the search functionality of the PublisherGroup which creates an internal filter only allowing access to those URLSources tagged with one of the languages, that are wanted.

Note, that I haven't yet thoroughly tested everything, I just wanted to get a working version of it, for you to have a look at and say what you think before putting too much effort into it. I would add tests and documentation in a further step.

@addie9800 addie9800 added the proposal You want to address a specific problem? Let us know about your idea. label Dec 21, 2024
@addie9800 addie9800 requested a review from MaxDall December 21, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal You want to address a specific problem? Let us know about your idea.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant