question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot setSettings in vue

See original GitHub issue

I would like to use optionalFilters https://www.algolia.com/doc/api-reference/api-parameters/optionalFilters/?language=javascript for which I need to set attributesForFaceting but there’s no documentation on how to do this. https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/

  1. This throws an error 400 Unknown parameter: attributesForFaceting
<ais-configure
  :hitsPerPage="8"
  v-bind="searchParameters"
  attributesForFaceting="brand"
/>
  1. trying to pass it through search client parameters doesn’t work
searchClient: algoliasearch(
  'ABCDEFGH',
  '01234567890123456789',
  {attributesForFaceting:'brandName'}
),
  1. I added an ais-refinement-list component with the attribuets brandName. Nothing
  2. I set the attributesForFaceting in the dashbaord configuation https://www.algolia.com/apps/VDJXSOGAAQ/explorer/configuration/INDEXNAME/facets Still cannot get results to work with optionalFilters

These are my optional filters:

searchParameters: {
  optionalFilters: 'brandName:SOMEBRANDNAME'
},

No hits fullfill the criteria of brandName:SOMEBRANDNAME even though there’s many entries in my indice that have should.

The same set up works with official codesandbox.io example instant_search

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mategvocommented, Jul 30, 2019

I followed the trophy at the beginning, before setting optionalParameters, and then spent hours trying to solve this issue. Maybe ranking should never overwrite other paramters, or there could be a warning message displayed. I really tried my best before posting here

1reaction
Haroenvcommented, Jul 30, 2019

For future reference, issues like this are best debugged by looking in the dashboard, where you can see the “trophy”, which will explain why records are sorted as they are. There you can see that in your previous case, the ranking always came down to “sortIndex”, which shouldn’t be the tie-break, so it should come after other criteria.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VueJS = Uncaught TypeError: Cannot read property 'settings ...
One solution is to use a normal function and predefine the property url in settings : new Vue({ el: '#app', data() { return...
Read more >
Vue.js | IntelliJ IDEA Documentation - JetBrains
It means that you can browse the project's sources but you cannot run tasks and script or run/debug your project. IntelliJ IDEA displays...
Read more >
Application API - Vue.js
Every application instance exposes a config object that contains the configuration settings for that application. You can modify its properties (documented ...
Read more >
FAQ | Vetur - GitHub Pages
Vetur cannot recognize my Vue component import, such as import Comp from './comp' ... jsconfig.json in your project, Vetur will use fallback settings....
Read more >
Vue.js — How to load settings/data from the Server Before ...
Unless you have the data available you can't load the page. We might end up with these scenarios like this very often.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found