This one drove me ape shit for about two hours... Hope this helps someone else.
I'm using Indexing Service on Windows 7. One thing to note before I continue, is that MS has all but given up on Indexing Service. For good reason: it sucks. So even if you select a website from the Tracking tab in the catalog's properties it will not play with IIS and you will not get a vpath property back. Took me a while to figure out why vpath was coming back blank. That's why...or so I've read.
So why isn't Characterization showing up? I guess you have to turn it on. Here's how I did it:
That's it. Now I get a summary. It's kinda lame as it cuts off mid word, so you might want to write a function that grabs the text from index 0 to the last index of " " (a space) and then append ... to the end or something fancy. Ah hell, here's the code in C#:
So my code may need some refactoring. It was a bonus anyway. ;) I call this in my DataGrid with the following:
<%# GetTruncatedSummary(DataBinder.Eval(Container.DataItem, "Characterization")) %>
I'm using ASP.NET 1.1 in the above example (I know...blech...) otherwise you could probably just use
<%# GetTruncatedSummary(Eval("Characterization")) %>
That's it! Hope this helps someone.