Hot answers tagged

22 votes
Accepted

Requests stop being served due to Lucene Deadlock

We had a similar problem in a production installation that had a significant number of calculated Lucene fields, plus a number of very active content authors with a lot of publishing and index ...
user avatar
20 votes
Accepted

How to maintain Sitecore Lucene Indexes in a huge content delivery web farm?

You cannot. Lucene is a "local filesystem" technology. If you want something that is shared between multiple Content Delivery server instances; you need to switch from Lucene to SOLR. If you're ...
user avatar
  • 24.4k
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
12 votes

Sitecore 8: Items Duplicated in Web Index After Publish

This looks like a bug with the OnPublishEndAsync strategy. It becomes apparent when authors start creating new versions of content each time they lock and edit an item. It has been fixed in 8.1 but ...
user avatar
  • 1,023
11 votes
Accepted

Sitecore 8: Items Duplicated in Web Index After Publish

The issue was that in my efforts to trim the index of waste, i.e. remove fields that I'm not accessing, I removed a certain special field (though it is not marked in any way as being important, though ...
user avatar
  • 4,741
10 votes
Accepted

Different indexes between SOLR and Lucene?

To answer your question, there are no differences in indexes between SOLR and Lucene (with the exception of the swap cores for SOLR, see Bonus Answer). What you are seeing is probably a product of too ...
user avatar
  • 14.4k
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
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

Way to prioritize title field for search results?

There's a bit of plumbing you need in place first. Assuming you're already somewhat familiar with the Content Search API, the core of your question is answered below. Custom Search Result Item This ...
user avatar
  • 4,741
9 votes
Accepted

ContentSearch Where vs Filter

Where => q The q parameter is normally the main query for the request Filter => fq "fq" stands for Filter Query.This parameter can be used to specify a query that can be used to restrict the ...
user avatar
  • 432
8 votes

Definition of content on a page

One approach that we have used is to index the content of all data sources in a single computed field. You can search that field when searching the index. This can probably be improved, but it's a ...
user avatar
  • 3,225
8 votes

Content delivery setup - Lucene indexes

The main thing you need to set up is the Instance Names in your ScalabilitySettings.config file. The names can be anything they just need to be consistent between the CM and CD. You can leave ...
user avatar
  • 1,023
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
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 ...
user avatar
7 votes

Is there a "weighting" involved with Sitecore.ContentSearch.SearchTypes.SearchResultItem?

Lucene will automatically apply that kind of weighting. It will give each record a "score" based on how well the document matches the term. A lot will be dependent on how you have crafted ...
user avatar
  • 18.9k
7 votes
Accepted

How to use both Lucene & Solr with Brightcove?

Depending on your Sitecore version, you can have both Solr and Lucene enabled at the same time. Each index configuration will define which provider is used. I have done this in v8.0+ You will need to ...
user avatar
  • 18.9k
7 votes
Accepted

Singleton search context for search api

Is using a single, reused context a good approach? Yes. It is the recommended approach. Are there any pitfalls? Yes. New documents added to your indexes will not show, until you re-open a new Search ...
user avatar
  • 24.4k
6 votes

Display Facets With 0 Values

You need to create on /sitecore/system/Settings/Buckets/Facets a new facets add field name (must be lowercase). You have the field Minimum Number ( Minimum Number of Items - The minimum number of ...
user avatar
  • 17.8k
6 votes

How to maintain Sitecore Lucene Indexes in a huge content delivery web farm?

another point: if you are leveraging xDB in Sitecore 8.x - and you have a scaled environment, you NEED a Solr index to make sure you have the analytics and list indexes updated on all servers
user avatar
6 votes

Lucene index corruption

If it is a custom config then it should also contain the _uniqueid field. <field fieldName="_uniqueid" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" type="System.String" ...
user avatar
6 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 ...
user avatar
  • 1,279
6 votes

How do I define a custom computed and tokenized field in my index?

First, you need to define your own index configuration. That's where you can define the fields that will only be used by your custom indexes. Create a file named e.g. Sitecore.ContentSearch.Lucene....
user avatar
6 votes
Accepted

How do I define a custom computed and tokenized field in my index?

In the section of your index (<configuration ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration" />) you should point towards a custom config instead of the default one. You ...
user avatar
  • 19.2k
6 votes
Accepted

Lucene indexing item url

I believe the issue is that the indexing runs without a HttpContext and not in the correct site context either. The missing site context is why you have to use SiteResolving = true as otherwhise it ...
user avatar
  • 3,225
6 votes

Lucene indexing item url

It's worth bearing in mind that you'll always have the ID of the item in the Index, so you would still be able to generate a URL at runtime once you have your search result. This may also be ...
user avatar
  • 4,124
6 votes

Boosting a computed index field in _content

I would use a different field for your computed field, so it's easier to boost. if this is not possible, you'll have to use some tricks, as you can't distinguish the values coming from a different ...
user avatar
6 votes
Accepted

Display custom bucket tags by name instead of GUID Sitecore 8.1

Your field is configured TOKENIZED, change it to UNTOKENIZED so that the values are not split when stored in the index. <field fieldName="tagsfacet" indexType="UNTOKENIZED" ...> ....
user avatar
  • 13.7k
6 votes
Accepted

Using alternate ContentSearch analyzers

It should be possible, but probably not that simple - at least not if you want to use a different analyzer at search time. Please note that I haven't tested any of the stuff below. Changing the ...
user avatar
  • 3,225
6 votes

Sitecore 7.2 Not rebuilding Lucene Index

The EventQueue - the medium of communication between your Sitecore instances - is timestamp-based, which can lead to issues if you are using replication and something happened that caused your SQL ...
user avatar
5 votes

Lucene spatial search with sitecore 8.2

You may have a look at the module LUCENE SPATIAL SEARCH SUPPORT on the Sitecore Marketplace. There is a link to the github repo which should give you an example of how that was done for Sitecore 7; ...
user avatar
  • 16.5k

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