• Resolved Pratham

    (@pratham2003)


    Hi, I initially tested this with a few keywords and I observed the indexer in the admin bar go from 0 to 100% and the links appear in the article.

    I then added 4,000 keywords using PHP in each post in the meta key ilj_linkdefinition and reset the index. I saw the indexer go from 0 to 100 but it always restarts again from 0. I can see the _temp table in MySQL growing in number of rows (indicating that the indexer is working) but the _temp template is never made active (renamed from _temp to the actual table). I am testing this with two custom post types that have around 3.5k articles each, one of them has no content, but the other post type has textual content and needs to link to posts from the post type without content.

    Can you let me know what might be wrong? I am trying to test the free plugin for someone before asking them to buy the pro version. Any help would be appreciated. Thanks.

    • This topic was modified 1 year, 5 months ago by Pratham.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support markilj

    (@markilj)

    Thank you for contacting us.

    Currently, the index build normally would restart from 0 to 100 a couple of times depending on how large your portal is, it only completes a part of the batch build, it will be 100% complete if the status changes from building to Build Complete https://prnt.sc/2r_G2k30A0mk.

    If the _temp table continues to grow it means it is still ongoing. However, may I ask how many post/custom posts you have?

    I also noticed you have added keywords thru PHP, how are you able to trigger the index build? did you trigger it thru the dashboard rebuild button?

    Thank you

    Thread Starter Pratham

    (@pratham2003)

    Oh ok, I noticed that the indexer had completed today morning on my local environment and replaced the tables.

    Does the WP CLI-based indexer work in a different or more-efficient way in the pro version?

    For reference, let’s say we have CPT A and CPT B.
    CPT A has no textual content (4.5k~). CPT B has textual content (3.5k~). We wanted to link keywords from CPT B to CPT A. CPT A to CPT B doesn’t happen because CPT A has no textual content/keywords to link back.

    Did you trigger it thru the dashboard rebuild button?

    ^ Yes. While I think this might be ok for testing, but it would not be good to run the full indexer everytime/everyday when new content is added? Is there a way to programmatically add keywords and trigger indexer for specific (affected) posts only in the pro version?

    Plugin Support markilj

    (@markilj)

    I see, it seems the index build completed.

    The CLI mode would function the same as the free one, however, it won’t be batched and will run continuously until it is finished. However, it would still check all posts/pages if there were updates in content or keywords, to generate all possible links. The only benefit of the CLI mode is that you can choose what time it runs or how often, example you set it to every 12 midnight everyday when there are not much users, it can be everyday , once a week or once a month, it depends on you.

    For reference, let’s say we have CPT A and CPT B.
    CPT A has no textual content (4.5k~). CPT B has textual content (3.5k~). We wanted to link keywords from CPT B to CPT A. CPT A to CPT B doesn’t happen because CPT A has no textual content/keywords to link back.

    Oh I see, currently our plugin won’t be able to recognize that. But I’ll check on this for our plugin’s improvement.

    ?Yes. While I think this might be ok for testing, but it would not be good to run the full indexer everytime/everyday when new content is added? Is there a way to programmatically add keywords and trigger indexer for specific (affected) posts only in the pro version?

    In the free version, using the automatic mode. if you add the keywords thru the import function or the post editor, the index build will automatically rebuild the index, this rebuilds only for that specific post, if you update the keyword it will scan other posts for anchor match, if you update the content it will find matches for keywords from the other posts, it won’t do a full index rebuild, until you change the ILJ settings or manually trigger it.

    I hope this helps, let us know if you need anything else.

    Thank you

    Thread Starter Pratham

    (@pratham2003)

    In the free version, using the automatic mode. if you add the keywords thru the import function or the post editor, the index build will automatically rebuild the index, this rebuilds only for that specific post, if you update the keyword it will scan other posts for anchor match, if you update the content it will find matches for keywords from the other posts, it won’t do a full index rebuild, until you change the ILJ settings or manually trigger it.

    I want to programmatically add the keywords to a post and trigger the incremental indexer on that post, maybe using PHP if possible or using CLI, is that possible in some way? I am assuming internally the plugin might be using a post_save hook to trigger the incremental indexer for whichever post was updated.

    Plugin Support markilj

    (@markilj)

    I see, I think it is possible if you can write a PHP code that automatically adds keywords thru PHP, and you can find out our code that triggers the index build thru “save_post” / “post_updated” you might be able to achieve your goal even in the free version.

    Thank you

    Thread Starter Pratham

    (@pratham2003)

    Thanks, that makes sense, I’ll look around. I have got the premium version now for custom links support.

    • This reply was modified 1 year, 5 months ago by Pratham.
    Plugin Support markilj

    (@markilj)

    Thank you for your support.

    Just let us know if we can help you further.

    Plugin Support markilj

    (@markilj)

    As we have not heard from you in a while, we are closing the thread. Please feel free to get back in contact if you need further support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘4000+ keywords, indexer in infinite loop?’ is closed to new replies.