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.

'Attribute not configured to be highlighted'

See original GitHub issue

Hi!

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:

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:closed
  • Created 6 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
rayrutjescommented, Sep 13, 2017

Slightly concerned about the v-html, will look into ensuring there are no XSS vulnerabilities…

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 👍

1reaction
HemalRcommented, Sep 13, 2017

Ah awesome, cheers mate!

Read more comments on GitHub >

github_iconTop 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 >

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