20 votes
Accepted

How does Sitecore decide the Index to use with GetIndex

When you call Sitecore.ContentSearch.ContentSearchManager.GetIndex(IIndexable indexable), it runs contentSearch.getContextIndex pipeline. In the version I'm checking now (it's 8.2 update 3), this ...
user avatar
19 votes

How to rebuild the analytics index without rebuilding the entire reporting database?

Analyzing the proposed approach Let's look at the workaround code from the linked article: ContentSearchManager.GetIndex("sitecore_analytics_index").Reset(); var poolPath = "aggregationProcessing/...
user avatar
16 votes
Accepted

How do you programmatically exclude an item from being indexed?

There are a few steps required to make this configurable in Sitecore. Create a Checkbox Field Add a checkbox field, likely to your page item template. This field could be added to a base template ...
user avatar
  • 4,741
14 votes
Accepted

Fields Not Being Indexed in Lucene

The fields are being indexed, but they are not all marked as storageType="YES" in the default Lucene configuration. This means that the fields will be tokenized in the index, but not stored, or ...
user avatar
  • 18.9k
14 votes

How to switch Lucene to Solr

As others have said here there are a number of steps to do this: Install Solr Generate an XML Schema for Solr Enable Solr term support Verify that Solr is running correctly Create Solr cores ...
user avatar
14 votes

How to delete a Contact programmatically in xDB

Do not delete contacts Simply deleting a contact is a bad idea. It doesn't take into account so many entities that are related to the contact! Here's a very incomplete list of things to consider: ...
user avatar
13 votes
Accepted

If I unpublish an item will Sitecore update the search index?

I did some research and for simple scenario unpublished content is deleted from the index. In my case, it was Lucene, but that shouldn't be really matter because all relevant code is stored in ...
user avatar
12 votes
Accepted

What is the difference between an index and a search index

tl;dr: If you are on Sitecore 7.0 or newer, you should pretty much always be using ContentSearch indexes. If you are on Sitecore 6.X, you can only use the older Sitecore.Search.Index indexes. ...
user avatar
  • 2,916
12 votes
Accepted

When and why to create a custom index

I don't think it takes 10 ms when you have complex query with facets. The most important reasons for creating a separate index are the following: you can index only the items you need, speeding up (...
user avatar
  • 17.8k
11 votes
Accepted

What is the impact to a Sitecore instance while rebuilding the links database?

Sitecore is using link database in order to speed-up resolving of relationships between items (referers/references). It allows to increase performance of Sitecore client and shouldn't impact site ...
user avatar
  • 17.8k
11 votes

What is the difference between an index and a search index

There is no difference. They are the same thing. They are both defined in config files, and they both are accessible using the Sitecore search API. It comes down to how the index is used in the ...
user avatar
  • 1,037
11 votes
Accepted

How to rebuild the analytics index without rebuilding the entire reporting database?

Have recently implemented this module, works perfectly for me so far, give it a try. https://vohil.net/2017/05/16/rebuild-sitecore-analytics-index-without-re-building-reporting-database/
user avatar
10 votes

What is the difference between an index and a search index

The "Rebuild Search indexes" will list the system index, used for searches in the Sitecore desktop. I think the reason that this one is separated from the other is to be found in older Sitecore ...
user avatar
  • 19.2k
10 votes

Should indexes folder in data folder be removed every now and then?

From what I remember if you perform a full index rebuild from the Control Panel, index files will be removed. You don't need to do this manually. And yes, sometimes indexes may become corrupted for ...
user avatar
10 votes
Accepted

Combining multiple Items into one Document

From your description, it looks like you have run into the same predicament that all Sitecore developers inevitably run into with regard to Content Search indexing: why don't my data source items just ...
user avatar
10 votes
Accepted

Config patch/hack to temporarily disable index update

You could create a patch file that sets all the indexes strategies to manual, that would effectively disable any automated updates that might happen as a result of installing a package or other ...
user avatar
  • 18.9k
10 votes

Boost Solr query and prioritize exact match

Something like this has worked for me. Beyond the boosting, the important part is to have the exact match Or the loose match. exactPredicate.Or(loosePredicate); That will build the proper SOLR query. ...
user avatar
  • 12.9k
9 votes
Accepted

How does Sitecore update a search index if there are no index update strategies configured?

It's my understanding that if no strategies are defined, than you would be unable to rebuild the index unless you do it directly on that server via code. Specifying a strategy calls the AddStrategy ...
user avatar
  • 4,124
9 votes
Accepted

"Silently" Create Item - Create Item Without Triggering Indexing or other Events

If you decompile and have a look at the Sitecore.Data.Items.ItemEditing class, in Sitecore.Kernel, you will find that all the EndEdit(bool) method does (and the relevant parts of its overload methods ...
user avatar
9 votes
Accepted

Lucene analytics index constantly loads HDD

The sitecore_analytics_index stores information about interactions, contacts, and some other xDB entities. The more data you collect, the bigger the index will grow. The more visits you have in a ...
user avatar
9 votes

Custom index configuration cannot work for Sitecore 9.0.1 in Azure

I fixed this issue. You should use <generalRedirectsSearchConfiguration ref="contentSearch/indexConfigurations/defaultCloudIndexConfiguration"> instead of using <...
user avatar
9 votes
Accepted

Is it possible to get Azure Search to support EDM.GeographyPoint?

Crawling (getting data into Azure Search) On the indexing side of things I was able to achieve this in Sitecore 9 by taking the following steps: Create a custom index configuration for my customer ...
user avatar
  • 1,059
9 votes

SwitchOnRebuild with SolrCloud not working

Okay - so we've got to the bottom of this and it looks like it was just a misconfiguration issue when using SOLR cloud. I'm posting this here for reference: Rebuilding the index for SOLR cloud is ...
user avatar
8 votes
Accepted

How to delete a Contact programmatically in xDB

Sitecore.Analytics.Data.DataAccess.DataAdapterManager.Provider.DeleteContact(new ID(contactId)); After that you might run the following to update the index: var index = Sitecore.ContentSearch....
user avatar
  • 858
8 votes
Accepted

How do I rebuild the Quick Search Index in Sitecore 8.2?

The system index from <search> node was marked Obsolete in config (SC8.1.3) and completely removed in Sitecore 8.2 Initial Release. <search> <!-- Obsolete: the API that uses this ...
user avatar
  • 13.7k
8 votes

An index with the name "sitecore_web_index" have already been added

If you open the showconfig page (hostname/sitecore/admin/showconfig.aspx) it will tell you all the indexes that Sitecore is loading specially the one that is causing you problem. It will show you ...
user avatar
  • 5,636
7 votes

What is the impact to a Sitecore instance while rebuilding the links database?

Rebuilding Link Database updates the Links table in the "core" (default) database based on the selected list of database(s). As mentioned by others, it updates the referrers and references for a ...
user avatar
7 votes

What is the difference between an index and a search index

RebuildSearchIndexForm is obsolete. [Obsolete("The dialog is not in use anymore and will be removed in the future versions.")] public class RebuildSearchIndexForm : WizardForm So I would say, we don'...
user avatar
7 votes
Accepted

Issue with multiple crawlers on Solr custom search index

We had the exact same issue as well with Lucene indexes. Sitecore was able to provide a patch for the SitecoreItemCrawler class. It doesn't appear to be on their Github so I can't link it but ask ...
user avatar
7 votes
Accepted

Indexing PDF content with Solr error

Please install IFilter, because it is required for indexing media items. For general information about the IFilter integration with Sitecore, you can refer to the following documentation (Uploading ...
user avatar
  • 17.8k

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