I would like to add a word document text search facility to a website.
The website is hosted on a Windows 2003 Server.
Can anyone advise how best to do this? I have had a search round and found various (rather pricey) components which will do the job however, I woundered if there was already a way to acheive this using components included with IIS, or if there was a free component that anyone could recommend.
I'm not very familiar with IIS, but I would think the search would need to be a script and not something the server would do on it's own.
You can find some scripts for searching at Hotscripts. I didn't look through the specific scripts, but hopefully there's something in there you can use that's either free or low cost.
The link above takes you to the search scripts written in asp. There's a category for asp.net and also other languages that might work.
Hope it helps.
__________________ l Search Engine Friendly Web Design | Please login or register to view this content. Registration is FREE
l Tips On Marketing, SEO, Design, and Development | Please login or register to view this content. Registration is FREE
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
I was going to suggest the POI Library but, I don't think you can use it with IIS (its a java library).
One thing that may help, as of word 2003, you can save word docs as XML. So, if you could get files in XML then searching would be trivial.
If you have a lot of documents you want the server to search, it might take some time. More than what people expect in the context of a web page.
I don't remember the exact syntax, but you can use OLE Automation to do this fairly easily. Use Server.CreateObject("Word.Application"), then open each document and enumerate the paragraphs or words. This looks like a good start: