This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search setup and config

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #48374
    avagyanlevonavagyanlevon
    Participant

    Can we do it use cron?

    #48375
    avagyanlevonavagyanlevon
    Participant

    I have checked my posts numbers and indexed posts is same

    please check this link
    https://aifusionart.com/mystic-plumage-a-tapestry-of-midnight-feathers/

    When I search for ‘mystic feathers,’ it appears on the results page because the keywords are included in the title.

    However, when I search for ‘abstract violet,’ even though both keywords are included in the tags, the images do not appear in the search results.

    Could you please explain why?

    Thanks

    Levon

    #48376
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Levon,

    wp_insert_post is fine, but it’s only called whenever a post is created. I guess the tags are added separately after the post was inserted to the database, and that does not trigger a “save_post” action – and in that case the index is not triggered to update with the added tags.
    After adding the tags is complete calling the do_action( ‘save_post’, $post_id, $post, $update ); once more is going to fix that.
    It’s a common issue with generated posts, and unfortuantely we can’t add a hook to trigger on tag addition, as it would require of rebuilding the whole index.

    You can actually use wp-cron and turn off indexing on post creation: https://i.imgur.com/MlrbHkh.png

    #48377
    avagyanlevonavagyanlevon
    Participant

    please check attachment, cron not indexed

    #48379
    avagyanlevonavagyanlevon
    Participant

    Also can I have the cron link setup it on my hosting cron?

    #48380
    avagyanlevonavagyanlevon
    Participant

    Ernest, I reindexed everything manually, but the post is still not showing on the results page.

    https://aifusionart.com/mystic-plumage-a-tapestry-of-midnight-feathers/

    Searching “ABSTRACT VIOLET”

    #48381
    avagyanlevonavagyanlevon
    Participant

    Seems working now, ok I will check everything and let you know.

    Thanks

    #48592
    avagyanlevonavagyanlevon
    Participant

    Hi, please let me know is 5-6 seconds is ok for searching time?

    Thanks

    Levon

    #48597
    Ernest MarcinkoErnest Marcinko
    Keymaster

    If there is a lot of data to search and many processes running as well as lot of overhead, then yes, that is possible.
    I did a few test searches and measured around 0.4 – 2.5 seconds, which is phenomenal in my opinion for this amount of information.

    #48598
    avagyanlevonavagyanlevon
    Participant

    You do search on my site?

    #48599
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yep – here I measured and underlined the queries which were search queries and the response times.

    #48600
    avagyanlevonavagyanlevon
    Participant

    you mean ajax search results, but when I press enter then I need to wait about 5-6 seconds for page loading with search results.

    Thanks

    #48615
    Ernest MarcinkoErnest Marcinko
    Keymaster

    That’s different yes, in that case the whole WordPress, theme, Elementor etc.. has to load up fully and that adds to the processing time.

Viewing 13 posts - 16 through 28 (of 28 total)
  • You must be logged in to reply to this topic.