WPSolr logo
Search
Close this search box.

Forum Replies Created

  • dnikola
    Participant

    ping once again about this topic 🙂

    dnikola
    Participant
    3 years, 9 months ago in reply to: Custom post status problem #20728

    ping once again about this topic 🙂

    dnikola
    Participant
    3 years, 9 months ago in reply to: index post meta on update #20727

    Ok 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…

    dnikola
    Participant
    3 years, 9 months ago in reply to: Support for wp rest api #20726

    ping once again about this topic 🙂

    dnikola
    Participant
    3 years, 9 months ago in reply to: indexing array from meta field #20725

    ping once again about this topic 🙂

    dnikola
    Participant
    3 years, 11 months ago in reply to: indexing array from meta field #19893

    Ok, 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 :/

    dnikola
    Participant
    3 years, 11 months ago in reply to: indexing array from meta field #19891

    Thanks!

    any specific option I should use or it will do that by default?

    Regards!

    dnikola
    Participant
    3 years, 11 months ago in reply to: Support for wp rest api #19873

    Please let me know if i can help you with test’s.

    Regards!

    dnikola
    Participant
    3 years, 11 months ago in reply to: indexing array from meta field #19872

    Hi 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!

    dnikola
    Participant
    3 years, 11 months ago in reply to: index post meta on update #19854

    no 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 );

    dnikola
    Participant
    3 years, 11 months ago in reply to: index post meta on update #19852

    aha, 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…

    dnikola
    Participant
    3 years, 11 months ago in reply to: index post meta on update #19850

    I 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 :/

    dnikola
    Participant
    3 years, 11 months ago in reply to: Custom post status problem #19849

    Ok please let me know ASAP, I am here to provide feedback!

    dnikola
    Participant
    3 years, 11 months ago in reply to: indexing array from meta field #19847

    Damn, I am blind! 🙂

    Thanks!

    dnikola
    Participant
    3 years, 11 months ago in reply to: indexing array from meta field #19843

    Could you please point me to that function?!

    Cannot find it :/

Viewing 15 posts - 1 through 15 (of 83 total)