Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2011
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Building a Clippy-Like Keyword Search?

    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.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,401
    Thanks
    11
    Thanked 595 Times in 575 Posts
    it would be better to embed the keywords into the documents and keep them well-indexed.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  • #3
    New Coder
    Join Date
    Jun 2011
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rnd me View Post
    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.

  • #4
    New Coder
    Join Date
    Jun 2011
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •