Skip to content

[meilisearch] make id filterable in docs-semantic-search - #841

Merged
mishig25 merged 1 commit into
mainfrom
meili-filterable-id
Sep 28, 2026
Merged

mishig25 merged 1 commit into
mainfrom
meili-filterable-id

Conversation

@mishig25

Copy link
Copy Markdown
Contributor

Adds id to filterableAttributes of the docs-semantic-search index.

Needed by huggingface-internal/moon-landing#19822: docs full-text search now hydrates deduplicated top-up hits with a single filter: id IN [...] search, instead of a multiSearch of up to 8 deep-offset lookups (~300-600 ms of Meilisearch time per keystroke on the live index).

update_db_settings runs on the temp index after every full rebuild and swap, so without this change the next full rebuild would drop id from the filterable attributes and break full-text search.

After merging, apply to the live indexes (re-running is idempotent):

uv run python migrations/create_meili_index.py --meilisearch_url <url> --meilisearch_key <admin_key>
uv run python migrations/create_meili_index.py --meilisearch_url <url> --meilisearch_key <admin_key> --temp

This PR was generated with an AI coding agent.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mishig25
mishig25 merged commit ef23fb8 into main Sep 28, 2026
4 checks passed
@mishig25
mishig25 deleted the meili-filterable-id branch September 28, 2026 09:16
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.

1 participant