Search code examples
vb.netindexing-service

Indexing Service empty filename property


I'm using the Windows Indexing Service for the first time and I need to return the doctitle and filename from the query.

My query is;

select doctitle, filename, vpath, rank, characterization from scope() where FREETEXT(Contents, '" & searchText & "') order by rank desc

I setup a fairly basic catalogue just pointing to a folder. I'm using this code from a website, the files are on the local machine and authentication shouldn't be a problem.

My search returns results but nothing in the filename property. The doctitle is populated but nothing else.

Thanks, Mike


Solution

  • I found the answer in this article; http://support.microsoft.com/kb/954822

    You cannot index Internet Information Services (IIS) Web sites in Windows Server 2008 because of the design changes that were made to IIS 7.0.

    The successor or the Indexing Service is Windows Search. Windows Search Wiki

    Looks like I'm going to have to change the site to use Windows Search.