Skip to content

Respect criteria and inheritance in search results - #57

Merged
dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/criteria-search
Oct 17, 2026
Merged

dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/criteria-search

Conversation

@dblock

@dblock dblock commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Adapt @tomasc’s SCI/criteria proposal from #37 to current master, with contributor credit. Respect subclass scope, skip missing/scoped-out documents without changing global Mongoid settings, and apply max_results after filtering. Preserve cross-model shared-index behavior for unscoped calls and relevance/scores. Add regressions for filtered top results, descendants, stale references with raise_not_found_error=true, and shared indexes.

Fixes #12. Supersedes #37. Depends on #51.

Prepared by an AI on behalf of @dblock.

@dblock
dblock force-pushed the dblock/criteria-search branch from 5cab20b to a97217c Compare October 17, 2026 02:52
@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

Adapt the SCI and criteria proposal from @tomasc in mongoid#37; preserve shared-index searches and apply limits after excluding missing/scoped-out documents.

Co-authored-by: Tomas Celizna <tomas.celizna@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/criteria-search branch from 2369874 to 275211a Compare October 17, 2026 03:26
@dblock
dblock merged commit 81f6e87 into mongoid:master Oct 17, 2026
12 checks 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.

Combining fulltext_search with other criteria?

1 participant