Search setup and config

This topic contains 27 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 weeks, 2 days ago.

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

    Can we do it use cron?

    #48375
    avagyanlevon
    avagyanlevon
    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 Marcinko
    Ernest 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

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48377
    avagyanlevon
    avagyanlevon
    Participant

    please check attachment, cron not indexed

    Attachments:
    You must be logged in to view attached files.
    #48379
    avagyanlevon
    avagyanlevon
    Participant

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

    #48380
    avagyanlevon
    avagyanlevon
    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
    avagyanlevon
    avagyanlevon
    Participant

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

    Thanks

    #48592
    avagyanlevon
    avagyanlevon
    Participant

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

    Thanks

    Levon

    #48597
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48598
    avagyanlevon
    avagyanlevon
    Participant

    You do search on my site?

    #48599
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

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

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #48600
    avagyanlevon
    avagyanlevon
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 13 posts - 16 through 28 (of 28 total)

You must be logged in to reply to this topic.