-
Notifications
You must be signed in to change notification settings - Fork 312
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
WC Orders: properly add ID to fields when searching for digits #2666
Conversation
I just uploaded the file now and will report in a few minutes after the resync. I also removed the potential issue with the extra custom field. The search for the order numbers worked well. when I did the search for a person's name in the orders, I got a person that did not match at all. I did not see anywhere in the order where krista was mentioned. Did not fix the user indexing errors. I did not copy the error just yet I will have to resync later to see it I did turnon the query log though incase you want to see other queries. I posted the query body below |
{ |
Does elastic search work with Active Custom Fields? |
Description of the Change
This PR fixes the implementation of #2554. A search term will always be a string, so instead of
is_int()
we should be usingctype_digit()
. It also fixes tests, properly casting the search term to a string, as WP core would do.Changelog Entry
Fixed: Searches by WooCommerce Order ID.
Credits
Props @felipeelia