• Hi,

    Since my migration to PHP 8.3 :

    When I click on the “Generate index” button, I have a problem with the indexing being too fast (less than 7 seconds for 950 pages, instead of the usual 45 seconds). In fact, I have partial indexing of around 5% of the pages, without understanding why.

    Index cleaning… Finished.
    Calculating publications… 941 publications found.
    10 contents indexed (total 10), contents processed 10/941.
    20 contents indexed (total 30), contents processed 30/941.
    40 contents indexed (total 70), contents processed 70/941.
    80 contents indexed (total 150), contents processed 150/941.
    85 contents indexed (total 235), contents processed 235/941.
    90 contents indexed (total 325), contents processed 325/941.
    90 contents indexed (total 415), contents processed 415/941.
    85 contents indexed (total 500), contents processed 500/941.
    85 contents indexed (total 585), contents processed 585/941.
    80 contents indexed (total 665), contents processed 665/941.
    40 contents indexed (total 705), contents processed 705/941.
    40 contents indexed (total 745), contents processed 745/941.

    When I put the server back to PHP 8.2, indexing works fine.

    I use :
    WordPress 6.4.2
    MariaDB 10.6

    Have you detected an incompatibility with the latest PHP 8.3 version?

    • This topic was modified 2 years, 6 months ago by jbaldy.
    • This topic was modified 2 years, 6 months ago by jbaldy.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mikko Saari

    (@msaari)

    I’m using Local for development, and it doesn’t support PHP 8.3 yet. I can’t test with PHP 8.3 at the moment. Nothing in the PHP 8.3 release notes stands out as a problem.

    What exactly is the problem here? Is it that indexing claims to go through all the posts, but doesn’t actually index every post? Do you use any custom Relevanssi filter functions?

    Thread Starter jbaldy

    (@jbaldy)

    @msaari Mikko Saari thank you for your reply!

    Some information that may prove useful in your diagnosis:

    • I mainly index Project and Page
    • Minimum word length : 1
    • Reinforce exact matches. (checked)
    • Respect exclude_from_search for custom publication types (checked)
    • Limit searches. (checked)
    • Length of extract : 30
    • 2 Check publication by ID: seems to work (But ID Post Project does not appear in search results in PHP 8.3)

    I think the problem is linked to a routine in your PHP 8.3 code, because I’ve tested a number of your plugin’s parameters and nothing has changed.

    • This reply was modified 2 years, 5 months ago by jbaldy.
    • This reply was modified 2 years, 5 months ago by jbaldy.
    • This reply was modified 2 years, 5 months ago by jbaldy.
    • This reply was modified 2 years, 5 months ago by jbaldy.
    • This reply was modified 2 years, 5 months ago by jbaldy.
    Plugin Author Mikko Saari

    (@msaari)

    Would you say the index is correct, then? I’m trying to figure out if this is a searching problem or an indexing problem. If the index is correct, that would suggest this is a searching problem.

    If it’s a searching problem, this may be caused by problems in the MySQL query. Query Monitor is the best tool to check the searching queries to see if they are correct. Here are the instructions for that.

    If the query is fine, then the problem may be in filtering or in the search results template. Does the search results template display all the posts the search returns? You can usually see how many results Relevanssi returns from the Query Monitor output; does that match what the search results template displays?

    Thread Starter jbaldy

    (@jbaldy)

    As I said in my first post, it’s an indexing problem: when you press the re-index all button, indexing only takes ~3 to 5 seconds instead of the usual ~40 seconds. I check indexing from the search/completion bar (I think only ~10% is indexed, and I can’t figure out why).

    I’ll try to better diagnose the problem as soon as I have the time and skills to do so.

    • This reply was modified 2 years, 5 months ago by jbaldy.
    Plugin Author Mikko Saari

    (@msaari)

    Use the Relevanssi debugger to check on individual posts to see how they are indexed. Are all posts indexed somehow? Is there content missing?

    Plugin Author Mikko Saari

    (@msaari)

    Just a note: Local finally supports PHP 8.3, and everything works perfectly fine with in my testing environment.

    Thread Starter jbaldy

    (@jbaldy)

    @msaari I can confirm that I’ve just retested, and I’m systematically reproducing the problem with PHP 8.3 FPM. To correct the problem, I need to run these commands:

    sudo a2disconf php8.3-fpm
    sudo a2enconf php8.2-fpm
    sudo systemctl restart apache2
    sudo systemctl restart php8.2-fpm
    systemctl reload apache2

    Plugin Author Mikko Saari

    (@msaari)

    Ok. I can’t test with FPM, so I can’t proceed with this.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘ISSUE: very partial indexing with PHP 8.3’ is closed to new replies.