Unable to replace the default Wordpress search with WPSOLR search
- savtParticipant4 years, 12 months ago #11830
I think it’s the Search Result page that is not working on my theme.
I’ve done a few test. And realized that the search input dropdown works fine https://imgur.com/a/KEdAMUg, but not the search page as shown in this link : https://imgur.com/a/UpnkCqf .Any advise on how I could solve this issue…?
savtParticipant4 years, 11 months ago #11864yes, it is using the standard url “https://{{domain}}/?s=a”
I switch the theme to see if the issue comes from the theme, unfortunately, the error message — “WPSOLR PRO : an error prevented the search engine query to be executed. To prevent empty results, the default WordPress query is used instead. Please check the error details in your debug.log file. See https://codex.wordpress.org/Debugging_in_WordPress”
still shows on the console using other theme..
savtParticipant4 years, 11 months ago #11872Thanks for replying. I’m not very good at this. When you said access to elasticsearch logs, and check if it’s been blocked by firewall on WP server….? Is this the page you’re after..? https://imgur.com/a/4BkeTkR
wpsolrKeymaster4 years, 11 months ago #11873Check if your get ERRORS in your log.
You can also log slow search requests: https://qbox.io/blog/slow-logs-in-elasticsearch-search-index-config-example
For blocked queries, you can ask your hosting provider.
- This reply was modified 4 years, 11 months ago by wpsolr.
savtParticipant4 years, 11 months ago #11875Alrighty.. with regards to Errors in log. there isn’t any. So I did some test on querying my search. It seems that elastic search is not responding to narrow search (i.e. when i include the hammer) as shown in the screenshot:
Do you think this might be the cause of it..?
savtParticipant4 years, 11 months ago #11901Sure.
this is 2.1: https://imgur.com/a/02gmVob
2.3: https://imgur.com/a/CWegCBC
You must be logged in to reply to this topic.