Skip to main content
22 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 ...
Marek Musielak's user avatar
  • 24.1k
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/...
Dmytro Shevchenko's 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 ...
jrap's user avatar
  • 4,971
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 ...
Richard Seal's user avatar
  • 20.6k
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 ...
Adam Seabridge's 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: ...
Dmytro Shevchenko's user avatar
13 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 ...
Vlad Iobagiu's user avatar
  • 18.7k
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 ...
Dmitry Harnitski's user avatar
13 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 (...
Vlad Iobagiu's user avatar
  • 18.7k
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. ...
Ed Schwehm's user avatar
  • 3,036
12 votes
Accepted

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 ...
Steven Newstead's user avatar
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 ...
Adam Conn's user avatar
  • 1,047
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/
Volodymyr Hil's 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 ...
Gatogordo's user avatar
  • 20.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 ...
Marek Musielak's user avatar
  • 24.1k
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 ...
Zachary Kniebel's 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 ...
Richard Seal's user avatar
  • 20.6k
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. ...
Chris Auer's user avatar
  • 13.2k
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 ...
Kasaku's user avatar
  • 4,184
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 ...
Zachary Kniebel's 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 ...
Dmytro Shevchenko's 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 <...
user1979636's 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 ...
TomT's user avatar
  • 1,079
8 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 ...
Srikanth Kondapally's 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....
Daniil's user avatar
  • 878
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 ...
jammykam's user avatar
  • 13.9k
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 ...
Diego's user avatar
  • 5,698
8 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 ...
Vlad Iobagiu's user avatar
  • 18.7k
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'...
Alan Płócieniak's user avatar
7 votes

Sitecore index update jobs getting stuck

Setting ContentSearch.VerboseLogging to true can help give you diagnostic info on search index activity. Or a set of memory dumps when the thread appears to hang. You may benefit from using the ...
G Killian's user avatar
  • 1,309

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