Viewing facet results for recordedBy field for Questagame records show that we are indexing HTML content in this field, which results in unexpected output when sorting by value (vs count). The IU is stripping out HTML so the user is only seeing the text portion but the ordering of results is still seeing the HTML content and thus all Questagame collector names appear jumbled up together because they all start with <a href.
Fix is to strip out HTML using a SOLR filter or via code (SOLR probably has this functionality built-in so suggest not reinventing the wheel here) for the recordedBy field only and rely on the raw_recordedBy to display the HTML version if required.
Related to #521
Viewing facet results for
recordedBy
field for Questagame records show that we are indexing HTML content in this field, which results in unexpected output when sorting by value (vs count). The IU is stripping out HTML so the user is only seeing the text portion but the ordering of results is still seeing the HTML content and thus all Questagame collector names appear jumbled up together because they all start with<a href
.Fix is to strip out HTML using a SOLR filter or via code (SOLR probably has this functionality built-in so suggest not reinventing the wheel here) for the
recordedBy
field only and rely on theraw_recordedBy
to display the HTML version if required.