Skip to content

Feat/add criteria filter algolia#437

Merged
zigzagdev merged 4 commits into
feat/search-criteria-and-endangered-filterfrom
feat/add-criteria-filter-algolia
May 3, 2026
Merged

Feat/add criteria filter algolia#437
zigzagdev merged 4 commits into
feat/search-criteria-and-endangered-filterfrom
feat/add-criteria-filter-algolia

Conversation

@zigzagdev

Copy link
Copy Markdown
Owner

No description provided.

zigzagdev and others added 4 commits May 2, 2026 22:43
Allow callers to request inscription-criteria filtering on heritage
search. The factory rejects values outside the i-x whitelist so invalid
input fails fast before reaching Algolia. Also updates the consuming
factory and search-heritages tests for the new constructor argument.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Without indexing the criteria attribute, any criteria facet filter
would always return zero hits because the field would not exist on
Algolia records.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Multiple selected criteria are joined with OR (criteria:i OR criteria:iv
...) so a request for "i or iv" returns heritage sites whose criteria
contain either value, matching the certification-exam study flow.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Wire criteria through the application and presentation layers so
clients can pass criteria[]=i&criteria[]=iv on the search endpoint.
The controller normalises a single string value into a one-element
array for callers that send a non-array form.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zigzagdev zigzagdev changed the base branch from main to feat/search-criteria-and-endangered-filter May 2, 2026 14:45
@zigzagdev zigzagdev self-assigned this May 3, 2026
@zigzagdev zigzagdev linked an issue May 3, 2026 that may be closed by this pull request
8 tasks

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

LGTM

@zigzagdev zigzagdev merged commit cb464f0 into feat/search-criteria-and-endangered-filter May 3, 2026
25 checks passed
@zigzagdev zigzagdev deleted the feat/add-criteria-filter-algolia branch May 3, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add criteria filter to Algolia search

1 participant