-
Notifications
You must be signed in to change notification settings - Fork 2
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
VIP Enterprise Search breaks byline lookup via API #120
Comments
This is a known issue and not technically a Byline Manager problem, even though the plugin could be part of the solution. But a consideration here is that it is up to the site owner to decide if profiles are indexed or not. |
Yeah, that makes sense. Maybe we could add a note in the documentation. Out of the box I think it works fine with Enterprise search, but it seems pretty counter-intuitive that removing bylines from the front-end search breaks the plugin's back end functionality. |
By that I mean you are removing the post type from being indexed. One can remove the BM post type from the list of accepted post types in a search on the front-end. And the back-end/editor would continue to work. |
I get that. I should have been more clear. The thing that feels counter-intuitive to me is that the search endpoint behaves like a front-end search. I understand from a software perspective why it happens and I was able to fix it immediately in my current project, but if I didn't know how the plugin works and also how Enterprise Search works, I would have been pretty confused. If we don't want to do anything about this that's fine, but I think a lot of developers are going to run into this issue and be less equipped to solve it for themselves, and finding some way to document it (or bypassing query offloading for this endpoint by default) might be helpful. |
I agree! I was confused myself when that happened. I'd suggest improving the documentation. |
Description of the bug
When WordPress.com VIP Enterprise Search query offloading is enabled, it breaks byline lookup unless byline profiles are indexed.
Steps To Reproduce
On a site Enterprise Search query offloading enabled and with byline profiles excluded from the elasticsearch index, search for an author profile on the post edit screen, either in the classic editor or the block editor. The search API will always return an empty array because there are no profiles to return in the index.
Additional Information
No response
The text was updated successfully, but these errors were encountered: