-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ElasticPress Facet widget - no 'post__in' mapping #1885
Comments
@MildConcussion can you share the query body that's being sent that generates that error? |
Here is the query body:
|
Would really love to use ElasticPress with as much of the features as possible. It really speeds things up! @brandwaffle Any tips that I could implement and get it to work? Could I fix this by filtering "ep_formatted_args" and replacing "post__in" with something else? I shall try and report back. Also there is a smaller issue when using the regular WooCommerce filter widget instead of ElasticPress facet one. This is related to WPML. I have the indexing and filtering by post_lang, but the counts on the widgets are wrong - seems to count all languages. |
Filtering "ep_formatted_args" and replacing the sort worked to fix the query not running, but the results are still weird. On the main shop page the filtering by product attribute works, but as soon as you go into a product category and try it there, it doesn't - shows every product in the category. The queries are as follows. In subcategory without any filters selected:
With pa_brand filter selected the query is:
|
Guess the problem is the "should"? As it has both the "product_cat" and the "pa_brand" it shows the same results. Any ideas how to fix this? Cheers! |
Hi @MildConcussion, First of all, sorry for the late response here. So, regarding the sort by post__in clause, we are keeping track of it in this issue. For the second problem, I hope you fixed that somehow. For users with the same problem that happen to get to this page, I'd check if products in the brand "avengers" really have "post_lang" as "et". Also, linking to this plugin may help. Due to the lack of movement we had here, I'm closing the issue now but if you can come back and share the solution (if any), that would be perfect. Thanks! |
As soon as I try to use the facet widget inside a product category it doesn't work and I get the error
"No mapping found for [post__in] in order to sort on"
Am I supposed to filter the query for it to work?
The text was updated successfully, but these errors were encountered: