Perlfect Solutions
 

[Perlfect-search] Using the "Highlight matches" option

Darrell Ring perlfect-search@perlfect.com
Wed, 24 Mar 2004 10:38:43 -0600
This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C4118C.2DBA8A70
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

After closer examining (checked through the logfile of SSH Secure =
Shell), I fount the file extention
wasn't being indexed.
The form now correctly searched the single page.

Is there something I can put in the form call to have is display the =
highlighted results right away ?


<form method=3D3D"get" action=3D3D"/cgibin/perlfect/search/search.pl">
    <input type=3D3D"hidden" name=3D3D"p" value=3D3D"1">
    <input type=3D3D"hidden" name=3D3D"lang" value=3D3D"en">
    <input type=3D3D"hidden" name=3D3D"include" value=3D3D"mypage.html">
    <input type=3D3D"hidden" name=3D3D"exclude" value=3D3D"">
    <input type=3D3D"hidden" name=3D3D"penalty" value=3D3D"0">
    <select name=3D3D"mode">
   <option value=3D3D"all">Match ALL words</option>
   <option value=3D3D"any">Match ANY word</option>
    </select>
    <input type=3D3D"text" name=3D3D"q"><input type=3D3D"submit" =3D
value=3D3D"Search">
  </form></div>


Thank you Daniel.
Fantastic Script!


------=_NextPart_000_0007_01C4118C.2DBA8A70
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>After closer examining (checked through =
the logfile=20
of SSH Secure Shell), I fount the file extention</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>wasn't being indexed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The form now correctly searched the =
single=20
page.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is there something I can put in the =
form call to=20
have is display the highlighted results right away ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>&lt;form method=3D3D"get"=20
action=3D3D"/cgibin/perlfect/search/search.pl"&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;input=20
type=3D3D"hidden" name=3D3D"p" value=3D3D"1"&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;input=20
type=3D3D"hidden" name=3D3D"lang" =
value=3D3D"en"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;input=20
type=3D3D"hidden" name=3D3D"include" =
value=3D3D"mypage.html"&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;input type=3D3D"hidden" name=3D3D"exclude" =
value=3D3D""&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;input type=3D3D"hidden" name=3D3D"penalty" =
value=3D3D"0"&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;select name=3D3D"mode"&gt;<BR>&nbsp;&nbsp; &lt;option =
value=3D3D"all"&gt;Match=20
ALL words&lt;/option&gt;<BR>&nbsp;&nbsp; &lt;option =
value=3D3D"any"&gt;Match ANY=20
word&lt;/option&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;/select&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;input type=3D3D"text" name=3D3D"q"&gt;&lt;input type=3D3D"submit"=20
=3D<BR>value=3D3D"Search"&gt;<BR>&nbsp; =
&lt;/form&gt;&lt;/div&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Thank you =
Daniel.</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Fantastic =
Script!</FONT></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0007_01C4118C.2DBA8A70--