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

Search Queries with specificationFilter returns a empty products object #241

Open
gustavo-vasconcellos opened this issue Mar 20, 2019 · 1 comment

Comments

@gustavo-vasconcellos
Copy link

Expected Behavior

The search query should be able to search any specifications values even if it contains a special character.

Current Behavior

The following variable object with the search query should return all filtered products, but returns an empty array. I suspect it's because of a / in the value of the rest parameter, which is the value of specificationFilter_216.

{
    "query": "Ambientes/Quarto",
    "map": "c,c,specificationFilter_216",
    "rest": "C/Cabideiro",
    "orderBy": "OrderByPriceDESC",
    "from": 0,
    "to": 23
}

Possible Solution

Maybe if change the search path and refactor the logic use the Search API path with fq=specificationFilter_{id}:{value}

Steps to Reproduce (for bugs)

  1. Create a sku field if a value that contains at least a /
  2. Use the store-theme app and go to the category page
  3. Filter the page

Context

I'm using the query with a custom application and filters have this value.

Your Environment

manifest.json:

"builders": {
    "styles": "1.x",
    "store": "0.x"
  },
  "dependencies": {
    "vtex.store": "2.x",
    "vtex.store-header": "2.x",
    "vtex.store-footer": "2.x",
    "vtex.carousel": "2.x",
    "vtex.shelf": "1.x",
    "vtex.product-details": "1.x",
    "vtex.product-kit": "1.x",
    "vtex.search-result": "3.x",
    "vtex.store-components": "3.x",
    "vtex.login": "2.x",
    "vtex.menu": "2.x",
    "vtex.minicart": "2.x",
    "vtex.my-account": "1.x"
  }
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

2 participants