'Attribute not configured to be highlighted'
See original GitHub issueHi!
Thanks for the great library 😃
Question - Been messing around with the highlighting to try to get it to work but keep getting the error that a couple of my attributes are not configured (even though they are). I then console logged the raw return data and the attributes that the warnings are referring to are in fact getting returned (as expected) within the _highlightResult
See screenshot:
My code:
<div slot="header" class="clearfix">
<span style="line-height: 36px;">
<ais-highlight :result="result" attribute-name="name"></ais-highlight>
</span>
</div>
<el-row>
<el-col :xs="24" :sm="12" :md="12" :lg="12">
<el-row>
<ais-highlight :result="result" attribute-name="phone"></ais-highlight>
</el-row>
<el-row>
<ais-highlight :result="result" attribute-name="fax"></ais-highlight>
</el-row>
Weirdly, this isn’t happening for all attributes 😕
Would appreciate if anyone can help point out if I am missing something obvious.
(Let me know if I am missing any detail above)
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
attributesToHighlight API parameter - Algolia
If not set, all searchable attributes are highlighted (see searchableAttributes ). · The special value * may be used to highlight all attributes....
Read more >javascript - React: 'selected' attribute not working with multiple ...
It seems to be completely ignoring the selected attribute and instead it looks like it's selecting the option from the list that corresponds...
Read more >OpenLayers 4 - select and highlight feature by attribute not ...
I am working on a web app using OpenLayers 4.6.5, with a WFS layer from PostgresSQL via GeoServer 2.5. I first click and...
Read more >Batch Attribute Editor Not Working - Esri Community
I'm experiencing an issue with the Batch Attribute Editor in our web application. For some reason it can no longer be used to...
Read more >Multiple attributes not highlighted
I'm sure this is a simple configuration problem, but it's driving me crazy. I'm running UE 10.20c on WinXP. Only the first attribute...
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
All data in _highlightResult is already escaped when retrieved from Algolia, so you can safely use that directly in v-html.
And yes, please open a new issue if you have something else 👍
Ah awesome, cheers mate!