0

When I search SOLR with query (grouptype is my field name)

/select?q=grouptype:*&wt=json

I get group values in human readable format ex: Type 1, Type 2 etc.

But when I do a faceted search

/select?q=*:*&rows=0&facet=on&facet.field=grouptype&wt=json

I get facet values like

"type1",9226
"type2",7668

How can I get facet values in human readable format like I got from the earlier query?

Prashant Onkar
  • 414
  • 3
  • 15
  • 2
    Faceting works on the _tokens_ stored in the field. If you have a analysis chain attached, you'll facet on the _result_ of the analysis chain. If you want to have the verbatim values, create an additional field as a `string` field (or a text field with a keywordtokenizer), use `copyField` to copy content into that field from the `grouptype` field and reindex. – MatsLindh Jan 23 '23 at 21:27

0 Answers0