Kloojed

Search inside uploaded files with EPiServer

A simple explanation on how to get EPiServer to search inside uploaded files using the indexing service.

To get this running properly you need to set up your environment correct. First we need to get the code right so here is a basic example:

  1. <asp:repeater runat="server" datasourceid="SearchDS">
  2. <headertemplate>
  3. <ul>
  4. </headertemplate>
  5. <itemtemplate>
  6. <li><%# Eval("PageName") %></li>
  7. </itemtemplate>
  8. <footertemplate>
  9. </dl>
  10. </footertemplate>
  11. <episerver:searchdatasource id="SearchDS" runat="server" searchfiles="true" searchlocations="/Documents/" searchquery="some input" />

Next you need to install the appropriate IFilters. These filters allow EPiServers indexing service to search and index different various file formats. Ifilters is included in some products like Adobe Reader or Microsoft office.

After you have installed all filters you think you will need, it´s time to fire up EPiServer CMS manager and make sure that the indexing service is running.

Upload some files and search for a word or frase inside the document.

I hope you find this article useful and feel free to post a comment.

  • Posted January 31, 2008

Leave a comment


Information

About

Marcus Lindblom is a Swedish professional frontend engineer with specialities like Web standards, ASP.NET, EPiServer, accessibility and long experience in developing high end websites for the public sector and commercial companies.

Copyright

Copyright © 2008 Marcus Lindblom. Powered by StormBreaker - Standards Compliant CMS. Hosted by Meridium AB.