Overview
You can now use Rich Text Fields as Searchable Fields in Yext Answers. You don’t need to do anything special - just add the field as a searchable field like any other field!
As an example take this field.
If you wanted to make it searchable the config would look like this
"searchableFields": {
"c_myRichTextField": {
"textSearch": true
}
}
Best Practices
Generally, rich text fields should be used as textSearch
since they are usually longer and more descriptive. Technically they can be used as facets
and nlpFilters
but this is generally not recommended given the length of these fields.
Caveats
- None of the rich text attributes will impact how search works. All bolding, italics, and bullets will be stripped. Additionally, the target url of links is omitted entirely (the text itself is indexed).
- If you do use these fields as
facets
ornlpFilters
only the first 500 characters will be indexed. There is no limit fortextSearch
.