Sitecore uses the extensive log4net logging framework to handle the large volume of logging entries it generates. Sometimes vague log entries can leave you scratching around trying to find where they originated from. This post explores some simple steps to add useful detail to, and real-time viewing of, the Sitecore log.
Category Archives: Sitecore
Filtering search on folder path with Sitecore Contentsearch API
Using the new Sitecore contentsearch api allows you search against a lucene index with very little effort. Examples are a bit short on the ground but using Linq you can find yourself doing something like this to search for an item by name, somewhere within a folder structure:
public void BadSearch(string searchTerm) { var webIndex = ContentSearchManager.GetIndex("sitecore_web_index"); using (var context = webIndex.CreateSearchContext()) { var results = context.GetQueryable<SearchResultItem>().Where(i => i.Name == searchTerm && i.Path.StartsWith("sitecore/content/stuff/")); // don't do this! } }
This may well work. However you may also run into a Lucene error stating that you are using too many clauses, the default limit is 1024.
Sitecore – Data at the root level is invalid
Redirect Manager module for Sitecore, updated on Codeplex
Still much tidying up to do, but a working v0.5 alpha release now up on Codeplex
Please report any bugs or issues via Codeplex.
Fixes broken language prefix handling. Also includes multiple breaking changes since previous v0.4 release in SQL (columns, index, constraints) and codebase (interface).
Updated database script for shared source ‘Redirect Manager’ module.
EDIT: 2012-May-24 This project has now moved to http://redirectmanager.codeplex.com
A quick update: The currently available blank database must be attached via Sql2008 R2 instance or later. For earlier versions there is now a revised SQL create script.
Continue reading
Sitecore ‘Redirect Manager’ module available on shared source.
A quick post to say that I’ve finally uploaded my shared source ‘Redirect Manager’ module to http://trac.sitecore.net/RedirectManager/
Continue reading
Sitecore LinkManager – Out of context link generation
This is part 2 of 2 posts on detailed Sitecore.Linkmanager configuration.
Continue reading
Sitecore LinkManager – Multi-site configuration
Urls for sitecore items are generated by the static class Sitecore.Links.LinkManager. In normal use you wont have any issues, but things can get trickier when you step out of a simple scenario.
Continue reading
Moved from WordPress.com to self-hosted WordPress.
I’ve had a blog hosted, mostly free, on WordPress.com for a while. I soon found that the ability to paste code, XML or HTML was severely limited by clean-up functions that would strip-out the data whenever I saved or switched between ‘Visual’ and ‘HTML’ views. Continue reading
Sitecore Staging. Onwards and upwards.
There isn’t anything new here, more a case of just wrapping up some posts and tying some events together.
Continue reading