Making a search engine for my website

Discussion in 'Programming' started by genius, Jun 13, 2010.

  1. #1
    Hello,

    I'm working on a new site , and I want to make or integrate a existing search engine into my site , but I don't know where to begin , until now I used or CMS or online store scripts that had their own engine.I want it to be a little complex, to be more exact.
    I;m building a web-site for a mountain resort , and when you search for a hotel , you must be able to select stuff like a TV in the room , wireless..etc , and the search engine should give the user only the relevant results.

    If someone can please help me a little I'd be very gratefull.

    Thank you very much.
     
    genius, Jun 13, 2010 IP
  2. CaseyM

    CaseyM Peon

    Messages:
    289
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you know how to develop then its pretty simple really. You just need to create a custom query that gets populated by the values selected in the search filters.

    Default Query ; Select * from tb_hotels

    You then modify the query acording to the options, i.e. if the user selects 'Yes' from the dropdownlist of 'Has TV' then the query would change to;

    Select * from tb_hotels where tv = 'yes'

    If you don't know development then maybe what you want to do is a bit too ambious to do on your own, in that case you should hire a developer. Alternativly you can implement a free Google Search. It will not allow you to include search filters but its very accurate, well it is Google after all :)
     
    CaseyM, Jun 13, 2010 IP
  3. genius

    genius Well-Known Member

    Messages:
    535
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Let's say I'm medium at developing , I've looked over a few sites and I found a couple of free search engine scripts , do you think it's easier if I just try and modify them ?
     
    genius, Jun 13, 2010 IP
  4. nimonogi

    nimonogi Active Member

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    80
  5. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Yup, I would go with using a search engine's pre-built api to do your dirty work, let them scrape and categorize your pages, then just use their search engine results :) Yahoo has something similiar to what you need.
     
    ccoonen, Jun 13, 2010 IP
  6. CaseyM

    CaseyM Peon

    Messages:
    289
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Its really not worth coding your own engine unless it really really needs to be specific and tailored for your content. Unless you know exactly what you are doing, you might end up doing more harm than good, imagine actually creating a search incorrectly and displaying the wrong results!

    trust me mate, go with Google Search;

    www.google.com/cse/

    Its free, Uber fast and easy to intergrate. Good luck :)
     
    CaseyM, Jun 14, 2010 IP