forked from 10up/ElasticPress
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
$normal_query = new WP_Query( [ 'p' => 7369046 ] );
$normal_query->posts[0]->guid;
=> ""https://example.com/?p=7369046"
$es_query = new WP_Query( [ 'p' => 7369046, 'ep_integrate' => true ] );
$es_query->posts[0]->guid;
=> "" :(
Need to make sure no other fields are missing as well, so logging here for now.
Side note: Really prefer the way es-wp-query just takes that IDs from the es results and then fetches accurate objects from SQL afterwards. Ensures things being returned are up to date, in case of index falling out of sync on an item. Especially in cases where not all meta/terms are indexed on purpose, but still might need to be fetched alongside the object being returned.
Metadata
Metadata
Assignees
Labels
No labels