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 9 of 9
  1. #1
    Regular Coder
    Join Date
    Oct 2008
    Posts
    255
    Thanks
    113
    Thanked 0 Times in 0 Posts

    What makes a good search form?

    What makes a good search form? Is it just a matter of letting a user search for a search term and use SQL LIKE to the title, tags, and post body? Or is there more I need to be aware of and take into account?
    Last edited by Joseph Witchard; 01-12-2010 at 03:58 AM.

  • #2
    Regular Coder
    Join Date
    Dec 2009
    Location
    Hong Kong
    Posts
    119
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Really depends what and where you search.

    A good search is a search that gives an output which is not too broad and not too limited. It's should also not be too difficult to formulate.

  • #3
    Regular Coder
    Join Date
    Nov 2009
    Location
    Hamilton, New Zealand
    Posts
    126
    Thanks
    0
    Thanked 17 Times in 17 Posts
    http://www.sitepoint.com/forums/show....php?t=366485#

    This is a pretty good post about ordering results by relevance. You can assign a custom 'weight' to each field. This would probably be a more advanced feature, though.
    Affordable Web Design (New Zealand Based)
    Internet Marketing Guru
    PHP/mySQL Expert
    -------------------------------------------

  • #4
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    Allow users to search across different fields, but also have the ability to select specific fields also, and narrow their searches with extra parameters. Also allowing different sort methods never hurts either
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • #5
    met
    met is offline
    Regular Coder
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    728
    Thanks
    4
    Thanked 119 Times in 119 Posts
    http://www.google.com

    makes a good search engine. "borrow" their ideas

  • #6
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    Indeed it is lol
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • #7
    Regular Coder
    Join Date
    Oct 2008
    Posts
    255
    Thanks
    113
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by met View Post
    http://www.google.com

    makes a good search engine. "borrow" their ideas
    Their "ideas" are a little more than I can implement at this stage in my learning career

    Quote Originally Posted by Rebbu View Post
    http://www.sitepoint.com/forums/show....php?t=366485#

    This is a pretty good post about ordering results by relevance. You can assign a custom 'weight' to each field. This would probably be a more advanced feature, though.
    How do you do something like that using variables? It's a nice example, but I really don't understand how it would work based on the fact that the user could enter in anything.
    Last edited by Joseph Witchard; 01-10-2010 at 11:30 PM.

  • #8
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Joseph Witchard View Post
    Their "ideas" are a little more than I can implement at this stage in my learning career



    How do you do something like that using variables? It's a nice example, but I really don't understand how it would work based on the fact that the user could enter in anything.
    simple text search, you can start from here:

    http://dev.mysql.com/doc/refman/5.0/...xt-search.html

    something more complex:

    http://search.carrot2.org/stable/search
    http://project.carrot2.org/download-search-plugins.html

    best regards

  • #9
    Regular Coder
    Join Date
    Oct 2008
    Posts
    255
    Thanks
    113
    Thanked 0 Times in 0 Posts
    Very interesting. You've all given me a lot of ideas to consider. Thanks


  •  

    Posting Permissions

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