2

Facets work on fields. So you should have a field in your items that determines if the item is a product or an article (or ...). This could be the template, but that is rarely named as you want it. I solved a similar issue with a computed field. I added a computed field into my (sxa) index that contains the text you want as facet based upon the logic you ...


1

You can use Content Search API and apply FacetOn() method on IQueryable like this: context.GetQueryable<SearchResultItem>().Where(predicate).FacetOn(x => x[“Propery1Name”], 1).FacetOn(x => x[“Propery2Name”], 1).GetFacets(); While: Propery1Name is your Country field and Propery2Name is your City field You can reach more information in this ...


1

Take a look at the answer here to get started: https://sitecore.stackexchange.com/a/11937/237 It's not possible ootb, and the easiest way to achieve this is creating a computed field in the index which will take the date fields value and transform it into a range text. Store this inside of the index as string and use it in the facet (as string, not as date). ...


1

This might be helpful: https://ggullentops.blogspot.com/2018/07/sitecore-sxa-search-overview-pages.html Adding the filter to the page is not that hard - it's a standard component. Getting the facet that is used by the filter component right is a bit more tricky. If you want to have a facet on a single line text you should use a List Facet. Create your facet ...


1

You will have to modify component-search-results-filter.js file. There is if (properties.multi) inside updateFacet function. If you will look inside there is another if if (currentFacet[0].type == "button") { for (i = 0; i < sig.length; i++) { // updating hash here } queryModel.updateHash(hash); // this is what should be ...


1

You have to create a custom index field and add custom logic to retrieve categories. The code which you can use for it: var allCategories = await this.Commander.Pipeline<IGetCategoriesPipeline>().Run(new GetCategoriesArgument(" "), context); var parentCategories = allCategories.Where(category => sellableItem....


Only top voted, non community-wiki answers of a minimum length are eligible