1
votes

We updated our Sitecore CMS from version 6.3 to 6.6 SP2. This Sitecore version has the Intranet Module installed. Everything is working fine, but the Lucene Search doesn't seem to work properly.

There are two indexes defined. One for the whole content tree and one for the media library. The search only delivers results with media items (images, PDFs), but no pages. With the tool Luke I'm able to look into the indexes and I see the items there. But they are not in the search results on the website anymore.

I rebuilt the search indexes using the Sitecore Control Panel, but that didn't help.

As I said, it was working fine on Sitecore 6.3, but not on the updated 6.6 SP2.

Any idea what could be the problem?

Thanks in advance :)

2
Would help to get clarified what "not working proberly" manifests as?Mark Cassidy
Added more information to the first post :)SpaceJump
Shifting from 6.3 to 6.6 also shifts the Lucene version and related configuration. The Lucene update introduces breaking changes, so most bespoke code would need re-visiting. At first, I would double check that all lucene/index related configuration has actually been correctly updated. Second step would be to scan the logs for Lucene related exceptions and warnings.Mark Cassidy
How do you select your index? it looks like your searching in the "Media items index" instead of the "full tree index"...Vicent Galiana
Both the content and the media index are configured in the web.config.SpaceJump

2 Answers

0
votes

Here is a blog post about Troubleshooting Sitecore Lucene search and indexing .

In shortcut:

  • Check if items are indexed correctly either using Luke.
  • Check if MatchAll query return page items:

    SearchManager.GetIndex("your_index_name").CreateSearchContext()
        .Search(new MatchAllDocsQuery(), int.MaxValue)
        .FetchResults(0, int.MaxValue).Select(r => r.GetObject<Item>())
    
  • Check included templates:

    <include hint="list:IncludeTemplate">
    
0
votes

It turned out that the 3 missing fields _sclsMedia, _sclsSearchable and _scLang in the Content Lucene Index that are causing the search not to function. So I removed the 3 fields from the code in my solution and now I get search results again.

The question is why were those 3 fields lost during the update from Sitecore 6.3 to 6.6.