Unable to replace the default Wordpress search with WPSOLR search

  • wpsolr
    Keymaster
    # 7 months, 2 weeks ago

    Did you create the index from WPSOLR, or from outside?

    savt
    Participant
    # 7 months, 2 weeks ago

    I create index from WPSOLR ..

    savt
    Participant
    # 7 months, 2 weeks ago

    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…?

    wpsolr
    Keymaster
    # 7 months, 2 weeks ago

    Ok, so suggestions are working fine.

    Is your search page using the standard url: “/?s=”

    savt
    Participant
    # 7 months, 2 weeks ago

    yes, 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..

    savt
    Participant
    # 7 months, 1 week ago

    Hi, if it’ll be easier for you to look into my issue. this is the link. as you can see the products are there. but the wpsolr is not showing on the sidebar even though it’s already been added. and the wpsolr pro error message displayed on console.

    https://vthdev.cloudaccess.host/?s=Hand+Tools

    wpsolr
    Keymaster
    # 7 months, 1 week ago

    Thanks.

    We must understand if your search query can reach your Elasticsearch instance. Try to find access in your Elasticsearch logs, and check that they are not blocked by a firewall on your WordPress server.

    savt
    Participant
    # 7 months, 1 week ago

    Thanks 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

    wpsolr
    Keymaster
    # 7 months, 1 week ago

    Check 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 7 months, 1 week ago by  wpsolr.
    savt
    Participant
    # 7 months, 1 week ago

    Alrighty.. 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:

    View post on imgur.com

    Do you think this might be the cause of it..?

    wpsolr
    Keymaster
    # 7 months, 1 week ago

    Fail or return no results?

    savt
    Participant
    # 7 months, 1 week ago

    Return No results

    wpsolr
    Keymaster
    # 7 months, 1 week ago

    Can I see your screen 2.1 and 2.2 ?

    wpsolr
    Keymaster
    # 7 months, 1 week ago

    Sorry, I meant your screen 2.1 and 2.3 ?

    savt
    Participant
    # 7 months, 1 week ago
Viewing 15 posts - 16 through 30 (of 48 total)

You must be logged in to reply to this topic.