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 ...
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/...
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 ...
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 ...
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
...
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:
...
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 ...
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 ...
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 (...
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.
...
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 ...
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 ...
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/
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 ...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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
<...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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'...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
indexing × 312solr × 133
content-search × 51
lucene × 40
azure-search × 31
xdb × 17
index × 17
azure × 12
sitecore-commerce × 9
sxa × 8
xconnect × 8
configuration × 8
publishing × 8
experience-analytics × 6
content-delivery × 6
sitecore-client × 5
upgrade × 5
coveo × 5
events × 5
computed-field × 5
sitecore-api × 4
sxa-search × 4
custom-field × 4
paas × 3
multisite × 3