Newly Published Sitecore Item doesn’t appear in Search

We have recently been doing a number of Sitecore upgrades. In one of them, we have upgraded the system from Sitecore 6.5 to 7.2. After the upgrade, newly published News items didn’t appear on their news page. This used search, and upon examination of the Lucene indexes, the new items didn’t exist in the index. Continue reading “Newly Published Sitecore Item doesn’t appear in Search”

Advertisements
Newly Published Sitecore Item doesn’t appear in Search

Sitecore’s SearchHits.Slice(int) method seems to change in Sitecore 6.6

I am working on a Sitecore 6.6 upgrade (yes, I know that that is still pretty much obsolete) and I came across a weird bug that took an age to track down. This is more a reminder for myself than anything else.

The code for Lucene searches frequently used lines of the form:

Slice Capture

List<SearchHit> distinctHits = hits.Slice(0).Distinct(new SearchHitEqualityComparer()).ToList();

This always returned zero SearchHits. It seems that this is due to the call to ‘Slice(0)‘ bit. This does raise some questions… Continue reading “Sitecore’s SearchHits.Slice(int) method seems to change in Sitecore 6.6”

Sitecore’s SearchHits.Slice(int) method seems to change in Sitecore 6.6

Appending to the _content field in Sitecore Search 7.2 and 7.5

The _content field in Lucene for Sitecore is basically the full text index. If you index things like PDFs, Word documents, etc., then the results of the IFilter get stored in the _content field.

You can add computed fields¬†into the _content field simply by specifying them with the name ‘_content’. However, I found some differences with how patch files behave.¬† Continue reading “Appending to the _content field in Sitecore Search 7.2 and 7.5”

Appending to the _content field in Sitecore Search 7.2 and 7.5