How to search everything

I’m currently using <Highlight attributeName="xxx" hit={hit} /> but I want to be able to search everything, not just one particular ‘field’ (eg, one field called xxx). How would I do this?

Hi there,

You can do this by adding more attributes to the searchable attributes:

Does this work for you?


Ok, so writing several <Highlight> tags, each with an individual attributeName allows me to render them separately.

<Highlight attributeName="a" hit={hit} />
<Highlight attributeName="b" hit={hit} />
<Highlight attributeName="c" hit={hit} />

Hmm, I think this means I’m going to need to adjust my data. Thanks for help :slight_smile: