-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search plugin fields being omitted in beforeSync
#6590
Comments
Before I dive deeper into this, @stoddabr can you double check the following for me please?
|
Closing this for now but happy to re-open if there's a reproduction repo offered! |
Hi @paulpopus , what's the best way to setup a quick reproduction repo? Is there a template floating around? I've skimmed all over the contribution and main docs but I don't see one. I'd love to help drill down into this issue (I think I've found the problem in code but want to get some guidance before I waste time on a contribution that may not be well received) |
@stoddabr If you create a blank payload repo with Basically distil it down to the simplest setup that still causes the bug |
This issue has been automatically locked. |
Link to reproduction
No response
Describe the Bug
Hi all, I noticed a weird behavior with the search plugin. I was trying to make multiple fields searchable efficiently by combining them into a single field in the created search collection. However, custom fields are removed and fields inside of doc are not searchable.
I'd be happy to help write a fix (or maybe a feature to build a similar, more optimized use case into the plugin). I just want to make sure this is a proper bug and not an implementation issue first.
To Reproduce
Here's a simplified version the search parameters I was using which hopefully illustrates my goal of combining multiple fields from different collections into a single searchable string field in the search collection:
With this, I noticed two issues:
search_string
disappears from the search documents and cannot be queried.doc
cannot be queried. I think this is related to this: Querying second nested collection value #2150 (comment)Workarounds include:
title:search_string
search_string
inside ofbody
and querying on thatPayload Version
2.0.0
Adapters and Plugins
(related) plugin-search v1.1.1, (probably unrelated) bundler-webpack, db-mongodb, plugin-cloud, richtext-slate
The text was updated successfully, but these errors were encountered: