Search plugin totalDocs returns incorrect value #9436
Labels
plugin: search
@payloadcms/plugin-search
status: needs-triage
Possible bug which hasn't been reproduced yet
Describe the Bug
When using the search plugin filtering by more than one field, results can return a totalDocs value higher than reality. Sometimes even higher than docs that exist.
Link to the code that reproduces this issue
https://github.com/TimLanzi/payload-search-bug
Reproduction Steps
/src/app/(frontend)/search/page.tsx
to add a filter oncategory.title
:Which area(s) are affected? (Select all that apply)
plugin: search
Environment Info
The text was updated successfully, but these errors were encountered: