Forum Replies Created
- dnikolaParticipant3 years, 9 months ago in reply to: Relationships and items per page not fully managed in admin search #20729
ping once again about this topic 🙂
dnikolaParticipant3 years, 9 months ago in reply to: Custom post status problem #20728ping once again about this topic 🙂
dnikolaParticipant3 years, 9 months ago in reply to: index post meta on update #20727Ok I made test’s and it appear that tringering insert post to update meta is very expensive operation
update_post_meta takes no more than 0.001 sec or less but updating post takes from 1 to 2 sec.
imagine how much is that time for 1000 post in one pass…
so i ended with updating field in elasticsearch and post_meta fields, but you should consider to add trigger when post meta is updated…
dnikolaParticipant3 years, 9 months ago in reply to: Support for wp rest api #20726ping once again about this topic 🙂
dnikolaParticipant3 years, 9 months ago in reply to: indexing array from meta field #20725ping once again about this topic 🙂
dnikolaParticipant3 years, 11 months ago in reply to: indexing array from meta field #19893Ok, I see that, I jest let 100 000+ post to idnex and i see that this fields are unserialized .
I tough that they will be unserialized and created as some array inside that post meta key?
what are benefits having this kind of data when previous and this way are both searchable ?
Even keys are lost and i don’t know how to fetch data, before I could get that filed data and than get value from array, now when i don’t know key i cannot do that :/
Could you please put option to check if we want to get this post meta unserialized , If this is how it will work, it will mess up things for me so I would like to turn it off :/
dnikolaParticipant3 years, 11 months ago in reply to: indexing array from meta field #19891Thanks!
any specific option I should use or it will do that by default?
Regards!
dnikolaParticipant3 years, 11 months ago in reply to: Support for wp rest api #19873Please let me know if i can help you with test’s.
Regards!
dnikolaParticipant3 years, 11 months ago in reply to: indexing array from meta field #19872Hi Patrice,
as you wrote in your replay here
“What you want in fact is to deserialize custom fields before indexing.
It is done in our next release (and is already done for ACF fields).”When you will have that release? Can I get pre-release to test?
Thanks!
dnikolaParticipant3 years, 11 months ago in reply to: index post meta on update #19854no I mean to hook on save post action for custom post type’s
for example
custom_post === test
add_action( ‘save_post_test’, ‘my_update_user_meta_function’, 10, 3 );
dnikolaParticipant3 years, 11 months ago in reply to: index post meta on update #19852aha, I am using save_post_{$post_type}
so i need to switch to save post and to check for custom post type inside function.
Ok, but this is maybe idea if custom post are indexing to hook on this also…
dnikolaParticipant3 years, 11 months ago in reply to: index post meta on update #19850I think I made mistake with a name, and than you repeated it, so function wp_post_update is actually wp_update_post ?
Are you sure that you hooked on this function? I am not sure how I can update post meta with that function according wp codex it is not possible?
every where is suggested to use update_post_meta function :/dnikolaParticipant3 years, 11 months ago in reply to: Custom post status problem #19849Ok please let me know ASAP, I am here to provide feedback!
dnikolaParticipant3 years, 11 months ago in reply to: indexing array from meta field #19847Damn, I am blind! 🙂
Thanks!
dnikolaParticipant3 years, 11 months ago in reply to: indexing array from meta field #19843Could you please point me to that function?!
Cannot find it :/