Home › Forums › WoodMart support forum › ElasticSearch incompatibility with WoodMart
ElasticSearch incompatibility with WoodMart
- This topic has 8 replies, 2 voices, and was last updated 2 years, 5 months ago by
Artem Temos.
-
AuthorPosts
-
October 4, 2022 at 11:25 am #410290
suyogParticipantI 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 2 years, 5 months ago by
suyog.
Attachments:
You must be logged in to view attached files.October 4, 2022 at 12:04 pm #410316
Artem TemosKeymasterHello,
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
October 4, 2022 at 12:21 pm #410331
suyogParticipantFrom 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
October 4, 2022 at 12:39 pm #410344
Artem TemosKeymasterCould you please clarify how did you find that it comes from the theme PHP file? Also, send us your FTP access.
October 4, 2022 at 12:47 pm #410354
suyogParticipantI 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.
October 4, 2022 at 5:31 pm #410622
Artem TemosKeymasterSorry, but the FTP seems to be wrong and we can’t connect https://gyazo.com/77a435f4469705f7d50e7e7556330167
October 4, 2022 at 7:27 pm #410672
suyogParticipantIt 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 2 years, 5 months ago by
suyog.
October 5, 2022 at 12:21 pm #410892
Artem TemosKeymasterOK, it works. Are we allowed to switch between themes and turn off plugins?
October 5, 2022 at 12:28 pm #410897
Artem TemosKeymasterIt comes from products widget in the mega menu https://gyazo.com/796b46b8f813b48de382a1d1be18dbd3
Try to remove that widget and test how it works.Kind Regards
-
This topic was modified 2 years, 5 months ago by
-
AuthorPosts
Tagged: ElasticPress, ElasticSearch
- You must be logged in to create new topics. Login / Register