cannot setSettings in vue
See original GitHub issueI 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/
- This throws an error 400 Unknown parameter: attributesForFaceting
<ais-configure
:hitsPerPage="8"
v-bind="searchParameters"
attributesForFaceting="brand"
/>
- trying to pass it through search client parameters doesn’t work
searchClient: algoliasearch(
'ABCDEFGH',
'01234567890123456789',
{attributesForFaceting:'brandName'}
),
- I added an
ais-refinement-list
component with the attribuetsbrandName
. Nothing - 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:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 hereFor 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.