New posts not being indexed

  • jnears
    Participant
    1 year, 2 months ago #38484

    Hi

    I have noticed that new posts are not automatically indexed. I need to click the button to index them manually.

    We are using version 23.4 of WPSOLR.

    I have NOT checked the box to disable real-time indexing.

    The posts are a combination of manually added by site editors (news, events, etc.) and posts created via nightly import from an external XML feed. The content from the XML feed is imported using the WP All Import module (called via a cron job).

    I noticed there is an Extension for the WP ALL Import module. Should I use this for the posts called from the external feed, or should I refer to this post: https://www.wpsolr.com/forums/topic/real-time-indexing-after-updates-via-api? As I currently don’t have dev version of the site with WP Solr installed I don’t want to make too many changes.

    Regarding the manually added posts, I read on one of your support posts that version 23.6 might fix this issue? https://www.wpsolr.com/forums/topic/real-time-indexing-not-working/page/2/

    Many thanks

    Jonathan

    wpsolr
    Keymaster
    1 year, 2 months ago #38486

    This will be fixed with Release 23.6

    jnears
    Participant
    10 months ago #44455

    Hi

    My WP Solr instance still doesn’t automatically index new content even though I’m currently using WPSOLR PRO 23.7

    To confirm, I have NOT checked ‘Stop real-time indexing’.

    Please advise

    Many thanks

    Jonathan

    wpsolr
    Keymaster
    10 months ago #44456

    When you manually publish a post, do you see the notice from WPSOLR indicating the post was sent to the index?

    jnears
    Participant
    10 months ago #44457

    There is no message as far as I can tell.

    I just published a new test page, to be sure, but nothing was displayed on the page.

    wpsolr
    Keymaster
    10 months ago #44458

    Can I see screenshots of your screen 2.2?

    No errors in your debug.log?

    jnears
    Participant
    10 months ago #44679

    I have noticed when I enter the admin area, I get the following warning message in the html:

    Warning: Undefined array key “wpsolr-pro/wpsolr-pro.php” in …/wp-content/plugins/wpsolr-pro/wpsolr/pro/class-wpsolr-pro-updates.php< on line 249

    FYI – I’m using PHP 8.0.29

    Will send links to the screenshots.

    jnears
    Participant
    jnears
    Participant
    10 months ago #44681

    I have also noticed the following issue in the logs

    [17-May-2024 09:43:35 UTC] (WPSOLR) Attribute is different from escaped value: selected=’selected’ => selected='selected'

    One of the fields contains special characters that are run through a function to display the contents.

    wpsolr
    Keymaster
    10 months ago #44687

    You create one index or several?

    jnears
    Participant
    10 months ago #44694

    The site only has one index.

    Our indexes are hosted on Opensolr (https://opensolr.com/)

    I do have another index in our account, but this is used for another website.

    wpsolr
    Keymaster
    10 months ago #44695

    Perhaps a conflict with one of your plugins?

    jnears
    Participant
    10 months ago #44696

    It could be a plugin conflict. However, as this is a live site, it is difficult to test without causing issues for end users.

    Do you provide a free or cheap dev license so I can place your module on our test site? This would be really useful and reduce the need for me to use the forum, as I could try various options first.

    Alternatively, is there a function/hook built into your module that I can call using a Cron job that will index the non-indexed content? i.e does the same job as the button ‘Index selected post types in index …’ under the Tab 3.0 ‘Send your data’ (this manual process does successfully index new content).

    • This reply was modified 10 months ago by jnears.
    • This reply was modified 10 months ago by jnears.
    wpsolr
    Keymaster
    10 months ago #44699

    You could use the Cron Scheduling add-on to schedule an incremental/full indexing.

    jnears
    Participant
    10 months ago #44701

    I have created a cron job using the Cron Scheduling add-on as suggested but when I run the task both from my terminal window and the scheduled task on the server I get returned the contents of a page not found 404

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

You must be logged in to reply to this topic.