9 votes
Accepted

Sitecore Search API not searching List of Guids Unsupported expression node type

You need to create your Guid variable first before trying to filter FacetCategory on it, Something like: Guid facetGuid = new Guid(facet); containsQuery = containsQuery.Or(item => item....
Ahmed Okour's user avatar
  • 2,124
8 votes
Accepted

Boosting Sitecore Lucene Indexing Results

If you want to boost field during the indexing time, you can use the "boost" property of field in the index configuration. For example: Below is another solution how you can boost an item based on ...
Artem Prashkovich's user avatar
4 votes
Accepted

Sitecore Search Facet based on Path

It sounds like you are on the right track. What you need is computed index field. You add another field to your index that indexes the parent item name as part of the document that you are indexing. ...
jonasag's user avatar
  • 533
4 votes
Accepted

Facet query returning 100 items max

https://community.sitecore.net/developers/f/8/t/2367 Solr has a limit on the number of facets - which has nothing to do with the Query.MaxItems btw (that is for Sitecore queries). You should be able ...
Gatogordo's user avatar
  • 20k
3 votes

Using Drop Link field with SXA Facets Component shows GUID instead of Title

You need to check this part of the documentation: https://doc.sitecore.net/sitecore_experience_accelerator/setting_up_and_configuring/configuring/extend_search#_Extend_search_to_3 This explains how ...
Gatogordo's user avatar
  • 20k
3 votes
Accepted

Newly created Facet is not showing in Content Search view

Please make sure the format of Field Name is correct - it should be similar to Solr field name (lowercase and with underscores instead of spaces) but without the field type suffix. For example, if a ...
Anna Gevel's user avatar
  • 1,918
2 votes

Sitecore Search Facet based on Path

To turn the IDs in your facets into real item names, just enable this setting. This will cause Sitecore to translate facets that are IDs into real item names. <!-- RESOLVE FACET VALUE TO FRIENDLY ...
Chris Auer's user avatar
  • 13.1k
2 votes

Sitecore sxa checklist facets in search are not loading when using azure search

Based on your question, I think you may have added the config for the facet field to the wrong index. You have given the example: <include hint="list:AddIncludedField"> <...
Richard Seal's user avatar
  • 20.4k
2 votes

Sitecore sxa checklist facets in search are not loading when using azure search

You have written that "field is getting added to sitecore_master_index" but SXA is using its own indexes - sitecore_sxa_master_index and sitecore_sxa_web_index. Check if the field is present those ...
Dawid Rutkowski's user avatar
2 votes

Sitecore sxa custom filter based on content tree multiple node selection as datasource

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 ...
Gatogordo's user avatar
  • 20k
2 votes
Accepted

SXA Checklist clear event

If you want to override how the default script works all you need to do is to override removeFacet() function in component-search-results-filter script of Search base theme. Few things you need to ...
Dawid Rutkowski's user avatar
2 votes

Checklist filter SXA not filtering itself

There is an option to do that. Checklist Filter has "Collapse on selection" checkbox in renderings parameters dialogue which when selected will make a filter to collapse when the value is selected. ...
Dawid Rutkowski's user avatar
2 votes

GetFacets / GetResults returns an empty facet list

You should be able to get facets with: queryResults.GetFacets() Additionally, FacetOn has a parameter called minimumResultCount that you can use for pulling only facets with at least 1 result. For ...
Leonardo Faggiani's user avatar
2 votes
Accepted

Hide items from admins

No, that's not possible in Sitecore. Admins have access rights for all the items. You cannot disallow read or write access rights for them. You should not make users administrators if they are not ...
Marek Musielak's user avatar
  • 23.6k
1 vote

How to write the query for grouping of articlecategories to fetch the count of article in Solr

Facet is used to aggregate the count of terms in a field to help a user filter their search more and more to get to the specific results they are after. You can use Facets in Solr which can be used to ...
Swati Gupta's user avatar
  • 2,890
1 vote

How to write the query for grouping of articlecategories to fetch the count of article in Solr

If you only need to get a number of articles for each category, then the facets feature is the best way to achieve this. Facets will count matching documents for each category and return only keys and ...
Anna Gevel's user avatar
  • 1,918
1 vote

How To Create Custom Hierarchical Tree Search Filter

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 => ...
QuachNguyen's user avatar
1 vote

How do I create a custom Date Range Facet in Sitecore?

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 ...
Gatogordo's user avatar
  • 20k
1 vote

How to create a custom facet for a Time range for an SXA search filter

Firstly you should create a computed field like that. public class IsBeforeNineComputedField : IComputedIndexField { public override object ComputeFieldValue(IIndexable indexable) { Item item ...
André Andrade's user avatar
1 vote

How to create a custom facet for a Time range for an SXA search filter

I could be wrong but I don't think implementing ISimpleFacet is the way to go for your situation. If anyone knows how to do it that way, that would be a great other answer. But to solve your issue, ...
Gatogordo's user avatar
  • 20k
1 vote

Create custom facet for Sitecore SXA search filter

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 ...
Gatogordo's user avatar
  • 20k
1 vote

How to trigger or refresh the search results on the basis of a session variable?

The easiest way is to update hash in the URL (search parameters) Search Results will reload once hash parameter in the URL will change. You can do it like this window.location.hash = "foo=1" ...
Alan Płócieniak's user avatar
1 vote

Enable multi search without filter button in sxa check list filter

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 == &...
Alan Płócieniak's user avatar
1 vote
Accepted

Sitecore Solr multiple filter tagging / excluding

You can do it with SolrNet by passing QueryOptions as a parameter: using (var context = index.CreateSearchContext()) { var field = "courseactivities_s"; var value = "Dinghy"...
x3mxray's user avatar
  • 3,150
1 vote

How to do facet on Associate Categories of a Product in Sitecore Commerce 9.3

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>()...
Andrei Paliakou's user avatar
1 vote
Accepted

How do I filter results using the SxaTags field while in the Content Editor search UI?

There are global and local facet types, if you want the SXATags to be global, there is checkbox Global on the facet item to check, if for specific items (local), you will need to update the facets ...
Mohammed Syam's user avatar
1 vote

SXA Facet Filtering wrong index

We recently faced same issue on Sitecore 9.0.2 & SXA 1.7.1. when contacted the Support team, they did mention it is a bug and provided patch for it. Reference number: 255689 Patch link for SXA ...
Gopikrishna Gujjula's user avatar
1 vote

Ways to compare search results in Sitecore 9.0.2

You will see the differences with the same search criteria for master DB and Web DB, because of the multiple version and workflow states in the master database. If you want to filter out the result ...
Mahendra Shekhawat's user avatar
1 vote

GraphQL Search facetOn Parameter

Your query looks good, I test it on Sitecore 9.1, SOLR with a Text field, that work with this adjustment. It is now facetOn "_category" looks like because the field(name: "Category") your field is ...
Jan Bluemink's user avatar
  • 1,185
1 vote

Limit search result hits to a specific number with facets to match limited result set

You should be able to use Sitecore Linq query on your SearchResults. You will want to look at using .Page() on the query you're using so that it's all part of your search query before you get the ...
Dave Goosem's user avatar

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