When enabling the "Filter by author" block in the muti-site search page, their names are displayed stemmed.

CommentFileSizeAuthor
#2 939236-multisite-sname-2.patch1.77 KBpwolanin

Comments

pwolanin’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev

We have these fields in the schema:

   <field name="name" type="text" indexed="true" stored="true" termVectors="true"/>
   <field name="sname" type="string" indexed="true" stored="false"/>
   <field name="sort_name" type="sortString" indexed="true" stored="false"/>

We should are indexing into the sname field via copyField and should be using that for faceting. Looks like the code is indeed wrong.

   <!-- The string versions of the name used for sorting/multi-site facets -->
   <copyField source="name" dest="sname"/>
   <copyField source="name" dest="sort_name"/>
pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.77 KB

I think this will fix it - you will need to reconfigure the enabled filters and blocks.

pwolanin’s picture

Status: Needs review » Fixed

Looks good in local testing. Committing.

gaëlg’s picture

Works for me too. Thanks !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.