Today I released a new version of the IndexViewer. You can use the tool to view, search and rebuild your Lucene indexes in Sitecore. The new version includes features that support the new Sitecore.ContentSearch namespace and LINQ expressions. It also includes new functionality that allows you to rebuild indexes on remote servers such as a content delivery server.
Rebuild remote indexes
You can now rebuild remote indexes on your content delivery server. It requires that you install a couple of files on your CD instance, but otherwise it works out of the box.
The idea is that there is an item in Sitecore, which has a layout that triggers a rebuild or show available indexes. This will be available on your CD’s and can be triggered if you enable the feature. To ensure that it isn’t triggered by someone outside of your organization, you have to enter a token in the settings. This token needs to be used to rebuild or get index information:
If you don’t want to enable this, then simply don’t enable the checkbox and don’t install the frontend files.
If you want to use it, then remember to change the security token, to something that isn’t default.
Support for Sitecore.ContentSearch
You can now browse, open and rebuild the ContentSearch indexes. Further a new feature to search using LINQ has been added. You can now navigate to the LINQ tab. Here it is possible to enter a where and take statement:
You can also use the LinqScratchPad or LinqPad, but I thought it would be nice to have a lightweight tool as well – plus it was fun to develop. There is a built in poor-man’s code completion. It only work on your SearchResultItem type – also your custom type, which you can enter in the field above.
All though it was a hard merge, I am delighted that we have another contributor to the IndexViewer. Paul Martin has built support for the Sitecore.Search API. Further he has extended the search functionality so that you can now add three clauses for each type of search. He has done a really great job, so you can now search like this:
You can download the new IndexViewer 2.0 for Sitecore 7 here