Home Forums WoodMart support forum ElasticSearch incompatibility with WoodMart

ElasticSearch incompatibility with WoodMart

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #410290

    suyog
    Participant

    I am using cloudways’s ElasticSearch 7.9 with ElasticPress.

    The problem is that Theme fires query on every page on the website to ElasticPress, and ElasticPress responds with the following HTTP 400 error:
    “reason”: “No mapping found for [post__in] in order to sort on”,

    I have installed Debug Bar, where we can see this error.

    eg. Visit this page after login in with Admin URL with temporary credentials:
    https://pharw.com/promotions/

    I have already tried disabling every type of search field from theme settings and Elementor Pro too.

    I wanted to narrow it down and found the problem is coming from woodmart\inc\integrations\elementor\functions.php:207
    I also tried to overwrite that particular function by the problem persists. But nothing worked.

    Please have a look.

    Thank You

    • This topic was modified 1 year, 6 months ago by suyog.
    Attachments:
    You must be logged in to view attached files.
    #410316

    Artem Temos
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    Regards

    #410331

    suyog
    Participant

    From the Appearance menu, I selected the StoreFront theme. Now the error goes away. Please help.

    Also, please guide me on integrating AJAX search of the whole theme and shop page with ElasticPress.

    Thanks a lot

    #410344

    Artem Temos
    Keymaster

    Could you please clarify how did you find that it comes from the theme PHP file? Also, send us your FTP access.

    #410354

    suyog
    Participant

    I searched in the themes folder where it is written in order by => ‘post__in’.

    I’m trying to enable elastic search results using wp-query to filter my shop page data. But I think the response still coming from SQL. Could you look into that too? the function I used is placed in the snippet named filter function.

    #410622

    Artem Temos
    Keymaster

    Sorry, but the FTP seems to be wrong and we can’t connect https://gyazo.com/77a435f4469705f7d50e7e7556330167

    #410672

    suyog
    Participant

    It is correct. I have tested it again. It is SSH that can connect via port 22 only. Use SFTP protocol without a key.

    • This reply was modified 1 year, 6 months ago by suyog.
    #410892

    Artem Temos
    Keymaster

    OK, it works. Are we allowed to switch between themes and turn off plugins?

    #410897

    Artem Temos
    Keymaster

    It comes from products widget in the mega menu https://gyazo.com/796b46b8f813b48de382a1d1be18dbd3
    Try to remove that widget and test how it works.

    Kind Regards

Viewing 9 posts - 1 through 9 (of 9 total)