Hot answers tagged

8 votes
Accepted

Why we should not use fast queries in Sitecore

Everything that @Hishaam said is correct, but I want to clarify the 2 questions here: So if I fast query an item with 100 children will all those come in to memory without paging or caching? No - ...
  • 19k
5 votes
Accepted

Finding root of a current index

The simplest code would be like that: var crawler = Sitecore.ContentSearch.ContentSearchManager.GetIndex(indexName).Crawlers.First() as SitecoreItemCrawler; string rootString = crawler.Root; Item ...
  • 20.7k
5 votes
Accepted

Solr SearchResultItem indexer does not resolve dynamic field name on custom index

Based on previous projects, when using Where(x => x[fieldName] != null), the fieldName should match the one from the Solr Index. From your question, if you pass Where(x => x["shape_s"] != null), ...
4 votes

When do indexes get rebuilt automatically in Sitecore?

Sitecore can be configured to do rebuilds with very different strategies depending on the architecture and requirements (it can be after publish, or full republish, or even manual, i.e. only rebuilt ...
4 votes
Accepted

Sitecore SOLR core pointing to different core directory

This is how SwitchOnRebuildSolrSearchIndex solr works , this is not a bug. Your website uses indexes from the primary core. Each time you initiate a full index rebuild, Sitecore does this in the ...
3 votes
Accepted

Programmatically boost items in an index does not work

Some clarification of the comment here: Search result boosting works in Solr version 6.6 or earlier, but Solr changed the implementation in Solr 7, and later versions. Therefore, search result ...
  • 19k
3 votes

Sitecore 9.3 with solr - Computed field is not showing up in index, nor is ComputeFieldValue executed

After working through this issue with sitecore support, it was determined that it was the documentOptions line that was the issue: <configuration ref="contentSearch/indexConfigurations/...
  • 61
3 votes

Why we should not use fast queries in Sitecore

When using Sitecore Fast Query, the result will not be cached. Sitecore has different layer of caching So if I fast query an item with 100 children will all those come in to memory without paging ...
2 votes

When do indexes get rebuilt automatically in Sitecore?

When OnPublishEndAsynchronous strategy is set on any index if there is a large publish triggered it can cause a full rebuild of the indexes. As stated in the sitecore index stategies guide the ...
2 votes
Accepted

sitecore_web_index index is not getting updated upon publish on remote Solr servers

Since you mentioned in one of the comments that you're using Solr Cloud with 3 nodes, I just wanted to share the setup I've found working well for most scenarios: Use just the ...
  • 694
2 votes

What are scenarios to use Sitecore.Web.Index?

The obvious answer is to use the Web index for any (site) search related functionalities. There are also other site search like functionalities. You could think of a news articles or product (,or ...
2 votes

Broken local environments - media library search, experience editor, can't rebuild index / indices

This answer is for your solr service issue that you mentioned in your comment. Follow this blog for more details - https://www.from-sitecore-with-love.de/blog/2019/solr-service-not-starting It can be ...
2 votes

How to get dynamic Summary or short description from Solr index

You can create computed index field and write logic according to that if Summary field is empty in that case it will go to Body field. And logic will be like that into your computed index field class. ...
1 vote

How to get dynamic Summary or short description from Solr index

To populate some dynamic text when the summary field is not available so you can use the computed field for the summary field and in that computed field you can check if any value is coming or not and ...
  • 1,954
1 vote

$name is getting indexed

$name is just a token which will be replaced by item name, if you will create item first and then add $name in standard value later then in $name will be reflect into your item because of standard ...
  • 1,954
1 vote

$name is getting indexed

$name is a token that replaces by item name when we create item in the content tree. But sometimes accidentally or because of some issue during item creation,it doesn't change to the item name and ...
1 vote
Accepted

Custom index was not found error in in Azure Paas Content Delivery

Your index needs to be configured in the indexes node. Probably that is done on CM but not on CD. Check the config on CD for something like: <contentSearch> <configuration type="Sitecore....
  • 19.3k
1 vote
Accepted

"Lock held by this virtual machine" exception with Solr 6.6.1

From the Solr source it looks like the connection to Solr is closing before Solr can read the query fully. This might happen if you have particularly large queries as there are some limits that apply ...
1 vote
Accepted

Could not create instance of type: Sitecore.ContentSearch.SolrProvider.SolrSearchIndex. No matching constructor was found

You dont need to disable lucene indexes as this can be done from web config search app setting. This might come from one of your custom index configurations, try to remove the custom solr index ...
  • 2,084
1 vote
Accepted

Warning message: 'GUID' field of 'GUID' item is skipped: field name is missed

I contacted Sitecore Support about this issue and they responded promptly with a patch to resolve it. They have asked that it not be shared publicly, but you can retrieve the patch by referencing ...
  • 5,115
1 vote

Solr cloud collection sitecore_web_index occasionally has multiple versions of an item in the index

Have you tried sitecore support? Do you have a patched crawler? There are a couple of bugs I've encountered which result in duplicate items in the web database. Which require patches from support. ...
  • 1,072
1 vote

When do indexes get rebuilt automatically in Sitecore?

Sitecore indexes are built by using following methods Publishing the content Navigate to control panel -> Indexing Manager -> clicking on rebuild search index button with the required indexes. ...

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