...

View Full Version : Building a Clippy-Like Keyword Search?



Classic_Cool
03-07-2012, 07:01 PM
I'm looking at building an interactive desktop gadget for our company computers that functions similar to Clippy (less annoying though).

The idea is for users to be able to type in keywords or questions and have the gadget present links to pages on our intranet. So similar to a search engine but more focused on answering questions as opposed to just returning a hundred results.

I've got a moderate understanding of java so I know I could do something like IF "Textbox" EQUALS "Keyword" THEN DO "THAT". Need a little more sophistication though, it should be able to accept multiple keywords and weigh the search results accordingly. I'm sort of picturing an updatable XML table like this:

KEYWORD This is the result
KEYWORD This is the result

Or an array in a separate .js file.

Maybe there's a better way than that actually but it's what I know. Has anyone got some advice on this? Thanks.

rnd me
03-07-2012, 08:49 PM
it would be better to embed the keywords into the documents and keep them well-indexed.

Classic_Cool
03-07-2012, 09:03 PM
it would be better to embed the keywords into the documents and keep them well-indexed.

That's not very likely to happen unfortunately, this Sharepoint site is used by all the departments and they'd never be that organized as a whole.

Besides it still potentially leads to a bunch of un-intelligent search results as opposed to a few results that I specifically programmed to come up for that keyword or combination of keywords. The idea is to get as close as possible to organically answering the user's question.

Classic_Cool
03-07-2012, 10:40 PM
Gave it some more thought and I'm thinking maybe I could store the keyword strings in an array and store the responses seperately in an XML file so that the different string combinations can access the same response.

Still not sure about the keyword syntax though, how would I get the script to recognize multiple keywords in the text box while discounting the non-keywords? I know it's simple enough to do, I just don't know how offhand ;)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum