Skip to content

DX-1926: Add typesafe filter#4

Merged
CahidArda merged 2 commits intomainfrom
DX-1926-typesafe-filtering
Jul 10, 2025
Merged

DX-1926: Add typesafe filter#4
CahidArda merged 2 commits intomainfrom
DX-1926-typesafe-filtering

Conversation

@CahidArda
Copy link
Copy Markdown
Collaborator

Adds typesafe filter which can be used like this:

const results = await searchIndex.search({
  query: "test-data",
  limit: 2,
  filter: { AND: [{ text: { glob: "test-data-1" } }] },
});

See the metadata.test.ts for all kinds of examples.

@linear
Copy link
Copy Markdown

linear Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

@alitariksahin alitariksahin left a comment

Choose a reason for hiding this comment

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

Pretty well structured, solid, examplary pr!

@CahidArda CahidArda merged commit 266241e into main Jul 10, 2025
1 check passed
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.

2 participants