1

The product item has a field "Property Type" which is a single line text

Property type

I want to create a facet so that I can use in the SXA search Checklist filter. I have added the field in the solr index like this

 <field fieldName="propertydetailpropertytype" storageType="YES" indexType="UN_TOKENIZED" vectorType="NO" boost="1f" returnType="string" settingType="Sitecore.ContentSearch.SolrProvider.SolrSearchFieldConfiguration, Sitecore.ContentSearch.SolrProvider"/>

The showconfig.aspx shows the property type field

field

Then created a property type facet in the facets folder "Tenant/Site/Settings/Facets/" and set the Field Name to propertydetailpropertytype.

Then created the filter Tenant/Site/Data/Search/Checklist Filter.

I have rebuild the solr index but the Property type filter is not working. Its showing no result. This is the solr query result:

solr result

Am i missing any steps?

9
  • Did you try setting the facet to propertydetailpropertytype_s ? – Gatogordo Mar 30 at 6:56
  • @Gatogordo yeah it didn't work – Owais Ahmed Mar 30 at 7:05
  • Do I notice correctly that the query in solr also has no facets? So the issue is already there.. is the field in solr properly filled? I would try to get the query correct in the solr admin first. – Gatogordo Mar 30 at 7:36
  • @Gatogordo yeah there is no facet and I cannot find the field in the solr as well. I have already added the field in solr index (please check the code in the question asked). Can you suggest what else I need to do ? – Owais Ahmed Mar 30 at 8:46
  • Did you repopulate the schema? – Gatogordo Mar 30 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.