Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    If you created a new Solr core, for an already indexed WP, you’ll get “0 document(s) remain to be indexed”

    Click on “Empty the Solr index” to reset the WP indexed docs cursor.

    Thread Starter Wietzej89

    (@wietzej89)

    New core for a new WordPress installation. eg. no exsisting index

    Plugin Author WPSolr free

    (@wpsolr)

    What happens when clicking on “Empty the Solr index” ?

    Thread Starter Wietzej89

    (@wietzej89)

    After clicking ’empty solr index’ and then clicking ‘index’ it just says ‘indexing’ followed by ‘stopping’. Nothing happens. No errors in the pluggin nor in the Solr installation

    Plugin Author WPSolr free

    (@wpsolr)

    What about “xxx document(s) remain to be indexed” ?

    Thread Starter Wietzej89

    (@wietzej89)

    Nothing….

    Only:

    A total of 0 documents are currently in your index
    0 document(s) remain to be indexed

    Thread Starter Wietzej89

    (@wietzej89)

    It gives me “0 documents indexed so far” right before changing to “Stopping… Please wait”

    Plugin Author WPSolr free

    (@wpsolr)

    You need to debug line 687 of file class-wp-solr.php

    $ids_array = $wpdb->get_results( $wpdb->prepare( $query, $lastPostDate ), ARRAY_A );

    What’s in $query and $lastPostDate ?

    Thread Starter Wietzej89

    (@wietzej89)

    This is what i get using the print_r function:

    Query
    SELECT count(ID) as TOTAL FROM wp_posts WHERE post_modified > %s AND ( ( post_status=’publish’ AND ( post_type=’post’ OR post_type=’page’ OR post_type=’tablepress_table’ ) ) OR ( ( post_status=’publish’ OR post_status=’inherit’ ) AND post_type=’attachment’ ) )

    Last post date
    2015-05-18 08:30:49

    Plugin Author WPSolr free

    (@wpsolr)

    If you see count(ID), that means you debugged the page refresh, rather than the reindexing action.

    Now, if you delete first, then re-index, you should see Last post date as ‘1000-01-01 00:00:00’

    Try to execute the statement on your mysql. What do you see ?

    Thread Starter Wietzej89

    (@wietzej89)

    Deleted and reindexed the the index with the print_r stil in the script. Now i am able to see an error:

    An error or timeout occured.

    Error code: parsererror

    Error message: SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data

    Wil try to execute the query directly into MySql as you sugested

    Plugin Author WPSolr free

    (@wpsolr)

    Either it’s JSON error to or from Solr.

    From
    What Solr version do you use (5.1 is not working)

    To
    Can you try without attachments ?

    Thread Starter Wietzej89

    (@wietzej89)

    WPSOLR – Version: 2.6
    Solr – Version: 4.10.2

    Tried without attachments: Nothing changed.

    Will try some more things

    Hello,
    Did you ever find a solution to this problem? I’m having a similar issue – no matter what I do I can’t delete an existing index.

    When I manually delete the index, through Solr, create a new index, reinstall the plugin, reboot, etc…, WPSolr shows 0 documents in index, 0 documents to be indexed – even though I have 80K documents.

    Also can’t display facets – do you have that problem too? ??

    Rob

    Thread Starter Wietzej89

    (@wietzej89)

    Nope sorry.. Ended up starting from scratch

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘0 document(s) remain to be indexed’ is closed to new replies.