Skip to content
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

Slider filter does not work with negative values #821

Closed
fabio-coutinho opened this issue Mar 15, 2018 · 1 comment
Closed

Slider filter does not work with negative values #821

fabio-coutinho opened this issue Mar 15, 2018 · 1 comment
Assignees

Comments

@fabio-coutinho
Copy link

Preconditions

NGINX 1.12.2
PHP 7.0.25
Elasticsearch 5.6.8

Magento Version : 2.2.2 CE
ElasticSuite Version : 2.4.0
Environment : Developer mode

Steps to reproduce

  1. Create a new attribute that enables slider filtering as defined in https://github.com/Smile-SA/elasticsuite/wiki/Attribute-configuration
  2. Set negative values in the attribute; in the example below I set 3 products with the following values -- Temperature=-10 Temperature=-15, Temperature=-25
  3. Search for the products that the attribute was set
  4. The Slider should show up just fine on the layered navigation, but if you filter it does not return any result

Expected result

  1. The results should filter the negative values according to the slider

Actual result

  1. The filter is not performed correctly as shown below:

Before filtering:
image

After changing filter:
image

After pressing OK:
image

It seems that since the filter uses the character "-" as the range separator, the engine is not able to parse numbers that have a minus signal on its values.

@afoucret
Copy link
Contributor

PR #822 have been merged.
Will be part of the next bugfix release (2.5.6)

BR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants