Skip to content

Conversation

@geoffreyaldebert
Copy link
Contributor

No description provided.

@ThibaudDauce ThibaudDauce changed the title Search improvement feat: search improvements Dec 31, 2025
ThibaudDauce added a commit that referenced this pull request Dec 31, 2025
Working towards having better tests for `udata-search-service`
integration (useful for #3583)
Copy link
Contributor

@maudetes maudetes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of my comments are on consistency, but the overall code is quite clean! 🎉

"topic": ModelTermsFilter(model=Topic),
"access_type": Filter(),
"format_family": Filter(choices=list(FormatFamily)),
"producer_type": Filter(choices=list(PRODUCER_TYPES)),
Copy link
Contributor

@maudetes maudetes Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have confusing similar filters between organization_badge and producer_type? Should we deprecate the first one if we use producer_type instead?

return dataservice.is_visible

@classmethod
def fetch_documentation_content(cls, url: str) -> str | None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some notes here:

  1. the documentation content is stored at index time only. We can ignore this for now as this is minor but it means hard-to-spot de-synchronization.
  2. Shouldn't we check for mime-type?
  3. Should we activate it for certified orgs only? I'm not very satisfied about indexing anything anywhere
    Do you think we could have a better approach, maybe more job oriented and not at the index time?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a general note, I think the idea was to have the same filters on mongo list vs search service search.
We're adding some filters on search service only here, but we can try to converge when we refacto the search service?

"description": organization.description,
"url": organization.url,
"badges": [badge.kind for badge in organization.badges],
"producer_type": producer_types,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need producer_types on organization if we already have an existing filter on badges? Example: https://www.data.gouv.fr/organizations?badge=association

@ThibaudDauce ThibaudDauce merged commit ebe9998 into main Jan 29, 2026
1 check passed
@ThibaudDauce ThibaudDauce deleted the search-improvement branch January 29, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants