- This topic has 6 replies, 2 voices, and was last updated 1 year, 9 months ago by Ernest Marcinko.
-
AuthorPosts
-
November 29, 2022 at 4:15 am #40237adam-polyaire89Participant
Hi, the index table search engine does not work after updating to version 4.24.1. Worked ok on 4.23. I have a custom post type, with a ACF field as the keywords (post code numbers). Previously I use the index table, and indexed the field in all the custom posts. This used to work fine with the search and return a result. Now, the search does not return a result when doing that. Previously it did. Please see screen recording.
November 29, 2022 at 10:25 am #40242Ernest MarcinkoKeymasterHi,
First, make sure to clear all layers of cache, just to be sure it is not in relation to that. The back-end preview search may not work exactly as the front-end search, can you please test that too?
If no luck, does the index table search yield any results to phrases from the titles or the content fields?
November 29, 2022 at 10:34 am #40244adam-polyaire89ParticipantHi, we have tried on the front end and it is the same problem. This problem with the index happens on our staging site with no caching tools or plugins, and on our live site when we turn the cache off. I have just tested to index titles and content as well, and that doesn’t work with the index either. When we generate the index, it says it is generating keywords, but it doesn’t work. If i roll back the staging site to 4.23, it works, but when I update to 4.24.1 t doesn’t.
I just tried installing this on a local install with MAMP and blank wordpress and it appears the issue is there as well. I can give you access to our staging site to test?
November 29, 2022 at 10:43 am #40245Ernest MarcinkoKeymasterYes please, access would be superb. Please add FPT as well if you can, that will make this very easy to debug.
I tried to replicate this with the same settings, but no luck, somehow everything works all right on my end, so it must be something specific. Let me know!November 29, 2022 at 10:48 am #40248adam-polyaire89ParticipantYou cannot access this content.
November 29, 2022 at 11:00 am #40249adam-polyaire89ParticipantHi in the private reply I’ve sent the access for the wordpress details on our staging site. I can’t give you FTP access as I can’t access that myself. Please let me know if anything else I can supply to help with fixing.
November 29, 2022 at 3:52 pm #40265Ernest MarcinkoKeymasterThank you, perfect.
I found the issue. Somehow when fetching the posts the “post_type” => “any” argument was simply ignored by wordpress and completely removed any results from the array. I had to make a correction to the plugin code to fix that. I will include this in the next upcoming release for sure.
For reference the file I changed is: wp-content/plugins/ajax-search-pro/includes/classes/Search/SearchIndex.php
-
AuthorPosts
- You must be logged in to reply to this topic.