We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After upgrading to Elasticpress 4.4.0 we are no longer able to search within the 'current' site, all requests seams to be using the Main site URL
If the search quests is using:
new WP_Query( array( 's' => 'search phrase', 'sites' => 'current', ) );
It doesn't work !
But if it's changed to:
new WP_Query( array( 's' => 'search phrase', 'sites' => get_current_blog_id(), ) );
It starts working correctly again
No response
The text was updated successfully, but these errors were encountered:
Hi @anders-naslund ,
By what you said, it seems this would be a regression? If so, can you let us know which version was working correctly for you?
Sorry, something went wrong.
4.3.1 was working fine, looks like it might have to do with changes in [includes/classes/Indexable/Comment/QueryIntegration.php]
Changed to use 'sites__in' according to the release note but still 'current' is not working so if that's not going to work anymore you might need to update this article. https://elasticpress.zendesk.com/hc/en-us/articles/360052027951-How-can-I-search-across-multiple-sites-in-a-multi-site-
oscarssanchez
Successfully merging a pull request may close this issue.
Describe the bug
After upgrading to Elasticpress 4.4.0 we are no longer able to search within the 'current' site, all requests seams to be using the Main site URL
Steps to Reproduce
If the search quests is using:
It doesn't work !
But if it's changed to:
It starts working correctly again
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress and ElasticPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: