No results are displayed in Search result by using META tag

liunx

Guest
I have set up index server and IIS, write a html and asp to do the search by using META tag with name="keywords" as below.<br />
<br />
<head><br />
<META NAME="KEYWoRDS" CONTENT="saw120/dh/062;abcdef;testing;12345;"><br />
<META NAME="DESCRIPTION" CONTENT="abcdef;saw320/dh/062"><br />
</head><br />
<br />
however, it is found no result is found after keyin "saw*" during search.<br />
<br />
but if "saw*" is appeared in <td> (an example as below) inside body of the html, a record is found in the search result. <br />
<br />
<table border="0" cellpadding="0" cellspacing="0" width=" 100%"><br />
<tr><br />
<td bgcolor="#FFFFFF"><font face="Arial, Helvetica"><br />
<p align="center"><img src=http://www.webdeveloper.com/forum/archive/index.php/"_derived\SheungWan.gif" width="600" height="60" border="0"><br />
</p><br />
<p align="center">&nbsp; </p><br />
</font></td><br />
</tr><br />
<tr><br />
<td><img src=http://www.webdeveloper.com/forum/archive/index.php/"LayoutPlan\SCL002-CA-S0341.jpg" width="1653" height="1167" border="3"></td><br />
</tr><br />
<td>SAW120/DH/062</td><br />
<td>testing</td><br />
<td>abcdef</td><br />
<td>12345</td><br />
</table><br />
<br />
is there anybody know what's wrong in my html or is there any configuration missing in index server ?<br />
<br />
thks<br />
kara<!--content-->important thing hee is that what is your jsp/asp code doing? show us some of your code.<!--content-->Here is the ASP for searching. <br />
<br />
thks --kara<br />
<br />
<br />
<%<br />
<br />
Dim rs<br />
<br />
Call Main()<br />
<br />
<br />
Function RunQuery(lcQuery,lcVirtual)<br />
<br />
Dim oQ<br />
Dim oU<br />
<br />
if TypeName(lcVirtual) <> "String" then<br />
<br />
lcVirtual = "/"<br />
<br />
End If<br />
<br />
if TypeName(lcQuery) <> "String" then<br />
<br />
Set RunQuery = nothing<br />
<br />
Exit Function<br />
<br />
End If<br />
<br />
Set oQ = Server.CreateObject("ixsso.Query")<br />
<br />
oQ.query = trim(lcQuery)<br />
<br />
oQ.columns = "Path,DocTitle,Filename"<br />
<br />
'oQ.SortBy = "Path"<br />
<br />
oQ.MaxRecords = 200<br />
<br />
Set oU = Server.Createobject("ixsso.util")<br />
<br />
oU.AddScopeToquery oQ,"\","deep"<br />
<br />
Set rs = oQ.CreateRecordset("nonsequential")<br />
'Set rs = oQ.CreateRecordset("sequential")<br />
<br />
if TypeName(rs) <> "Recordset" then<br />
<br />
Set RunQuery = "none"<br />
<br />
exit function<br />
<br />
End If<br />
<br />
if rs.RecordCount < 1 then<br />
<br />
RunQuery = "None"<br />
<br />
else <br />
<br />
Set RunQuery = rs<br />
<br />
End If<br />
<br />
End Function<br />
<br />
Sub Main()<br />
<br />
Dim strQuery<br />
Dim strVirtual<br />
Dim strTmp_rs<br />
Dim lcErrorMsg<br />
<br />
Dim strTitle<br />
Dim strPath<br />
Dim strSummary<br />
Dim strActualPath<br />
<br />
Dim intCount<br />
<br />
intCount = 1<br />
<br />
strQuery = Trim(Request("q"))<br />
<br />
If strQuery <> "" AND len(strQuery) > 1 Then<br />
<br />
strTmp_rs = RunQuery(strQuery, strVirtual)<br />
<br />
If rs.RecordCount > 1 then<br />
<br />
' response.write "Total records: " & rs.recordcount & "<br><br>"<br />
<br />
rs.MoveFirst<br />
<br />
response.write "Search Result(s):" &"<br><br>"<br />
<br />
Do While NOT rs.eof<br />
<br />
If rs("DocTitle") <> "" Then<br />
<br />
strTitle = rs("DocTitle")<br />
<br />
Else<br />
<br />
strTitle = rs("filename")<br />
<br />
End If<br />
<br />
strActualPath = rs("Path")<br />
<br />
strPath = replace(strActualPath,"\","/")<br />
<br />
strPath = replace(strPath,"c:/bh","http://testweb/bh")<br />
<br />
If Instr(1,strPath,"http://testweb/bh/html_files/",1) <> 0 then <br />
<br />
Response.write intCount & ". " & _ <br />
strTitle & _<br />
"<br>" & "<a href='http://www.webdeveloper.com/forum/archive/index.php/" & strPath & "'>" & _<br />
strPath & "</a><br>" <br />
<br />
intCount = intCount + 1<br />
<br />
response.write "<br><br>"<br />
<br />
End If<br />
<br />
rs.MoveNext<br />
<br />
loop<br />
<br />
intCount = intCount - 1<br />
<br />
response.write "Total records: " & intCount & "<br><br>"<br />
<br />
rs.Close<br />
<br />
Else <br />
<br />
response.write "Sorry, no matches were found."<br />
<br />
End If<br />
<br />
Set rs = Nothing<br />
<br />
Else <br />
<br />
response.write "Invalid input. Please try again"<br />
<br />
<br />
End If<br />
<br />
End Sub <br />
<br />
%><!--content-->
 
Back
Top