Double quotes inserted automatically around search phrases

  • az0000000
  • Beginner
  • Beginner
  • User avatar
  • Posts: 57
  • Loc: Moldova, Chisinau

Post 3+ Months Ago

Hello!
I have installed a search script from KSearch and wanted to adjust search form to have double quotes inserted automatically around search phrases.

Here is the HTML of my search form page:

HTML Code: [ Select ]
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>OM Radio » Song Requests » Search</title>
<link rel="stylesheet" href="ks_images/style.css" type="text/css" />
</head>
<body bgcolor="#8fc4f0">
<div class="content">
   <div class="search_table">
      <form action="ksearch.cgi" method="get">
         <div class="fieldset_1">
         <fieldset>
            <input type="text" size="65" name="terms" id="tips" value="" onfocus="select(this);" />
                &nbsp; <input type="submit" value=" Search " /><input type="hidden" name="showm" value="5" />
                <br />
            </fieldset>
         </div>
         <div class="fieldset_2">
         <fieldset>
            <table border="0" cellpadding="10" cellspacing="0">
               <tr><td>
                            <p align="center">
                     Results: <select name="display">
                           <option>5</option>
                           <option selected="selected">10</option>
                           <option>25</option>
                           <option>50</option>
                           <option>100</option>
                           <option>500</option>
                           <option>1000</option>
                           </select>
                            </p>
                  </td>
               </tr>
            </table>
         </fieldset>
         </div>
      </form>
   </div>
</body>
</html>
  1.     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>OM Radio » Song Requests » Search</title>
  6. <link rel="stylesheet" href="ks_images/style.css" type="text/css" />
  7. </head>
  8. <body bgcolor="#8fc4f0">
  9. <div class="content">
  10.    <div class="search_table">
  11.       <form action="ksearch.cgi" method="get">
  12.          <div class="fieldset_1">
  13.          <fieldset>
  14.             <input type="text" size="65" name="terms" id="tips" value="" onfocus="select(this);" />
  15.                 &nbsp; <input type="submit" value=" Search " /><input type="hidden" name="showm" value="5" />
  16.                 <br />
  17.             </fieldset>
  18.          </div>
  19.          <div class="fieldset_2">
  20.          <fieldset>
  21.             <table border="0" cellpadding="10" cellspacing="0">
  22.                <tr><td>
  23.                             <p align="center">
  24.                      Results: <select name="display">
  25.                            <option>5</option>
  26.                            <option selected="selected">10</option>
  27.                            <option>25</option>
  28.                            <option>50</option>
  29.                            <option>100</option>
  30.                            <option>500</option>
  31.                            <option>1000</option>
  32.                            </select>
  33.                             </p>
  34.                   </td>
  35.                </tr>
  36.             </table>
  37.          </fieldset>
  38.          </div>
  39.       </form>
  40.    </div>
  41. </body>
  42. </html>


And here is the search page URL: http://om.md/radio/search/search_form.html

Any possibility to give and advice?
Thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1240
  • Loc: Sydney

Post 3+ Months Ago

Just wondering, why the double quotes in search for?
  • az0000000
  • Beginner
  • Beginner
  • User avatar
  • Posts: 57
  • Loc: Moldova, Chisinau

Post 3+ Months Ago

By inserting double quotes around a phrase, you tell the search engine two things: (i) the words typed in the search box should be present in any Web pages that show up, and (ii) the words should be present in the same sequence as the search phrase.
  • natas
  • PHP Ninja
  • Proficient
  • natas
  • Posts: 308
  • Loc: AFK

Post 3+ Months Ago

What if the user doesn't know the exact phrasing and needs to do a more general search? you would automatically exclude them.
  • az0000000
  • Beginner
  • Beginner
  • User avatar
  • Posts: 57
  • Loc: Moldova, Chisinau

Post 3+ Months Ago

Well, even if a single term will be enclosed in double quotes it will still give plenty of good results. I ain't pushing users to use phrases, i am pushing them to use double quotes.
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1240
  • Loc: Sydney

Post 3+ Months Ago

Quote:
Use a phrase instead of words and enclose the phrase within double quotes. By inserting double quotes around a phrase, you tell the search engine two things: (i) the words typed in the search box should be present in any Web pages that show up, and (ii) the words should be present in the same sequence as the search phrase. For example, if you are searching for information on the impact of climate change on skin cancer, it is not enough to type impact, climate, change, skin, and cancer as five separate words; instead, type "impact of climate change on skin cancer" and see for yourself how the number of hits comes down drastically--from 3.2 million hits to 76 when I searched while writing this post.

source: http://blog.editage.com/make-web-search ... ch-phrases

Seams like double quotes do the trick.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 141 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.