OnTheGoSystems / wpml-elasticpress

WPML ElasticPress adds support for languages in ElasticPress.
GNU General Public License v3.0
10 stars 3 forks source link

No Result for Instant Results #41

Open burhandodhy opened 7 months ago

burhandodhy commented 7 months ago

Customer has reported an issue where WPML integration is not working with the Instant Results feature. The problem is that Instant Results returns no result when trying to search in a different language. We noticed that this issue is happening because of the post_lang in the instant result template.

If you are using ElasticPress.io, the template can get via CLI command wp elasticpress get-search-template and if you are using the proxy, then it will be found atwp-content/uploads/ep-custom-proxy-credentials.php

image

Steps to reproduce the issue. 

  1. Add two languages. Let's say English and French.
  2. Add some dummy posts. 
  3. Select the French language in the dashboard, enable the Instant Article feature, and let the plugin do the syncing.
  4. Go to the frontend. 
  5. Select the English language. 
  6. Try to search for anything, and it will return no results.
image
decodekult commented 7 months ago

Hi Burhan

Thanks for the feedback. Currently, this feature is not yet supported - we support the Post Search, Related Posts, and Terms, Comments, Users features as we state in our documentation. We will use this ticket as a feature request but I can not offer you an estimation for development.

Regards.

abda53 commented 7 months ago

Please add this, this should be a feature and without it makes the plugin useless - especially when the plugin description says "Add full WPML support for ElasticPress." which is apparently not the case