bobby
bobby

Reputation: 2789

Enabling solr highlighting on field

I am trying to enable solr highlighting. It works on certain fields but doesnt on others.

The solr documentation says something like A '*' can be used to match field globs, such as 'text_*' or even '*' to highlight on all fields where highlighting is possible.

I would like to know what decides whether a field is one where highlighting is possible

Upvotes: 1

Views: 357

Answers (1)

bobby
bobby

Reputation: 2789

In addition to @MatsLindh's comment above about the type of the field having to be "text", I found the matrix at https://solr.apache.org/guide/6_6/field-properties-by-use-case.html to be helpful. Basically a field should be indexed and stored for highlighting to be possible/

Upvotes: 1

Related Questions