rsgibson
asked on
Characterization field returns empty when Index Server Catalog is queried
Hello all,
I am using IIS5 Win2k Server, sp2. I have created a catalog and am querying
successfully from an asp page except for the characterization field. This
field does not get populated. I've attached my asp code below. Any help
would greatly be appreciated.
Thanks in advance!
-rg
========================== ========== ======
<!-- Beginning of Main Content -->
<%
if Request.Form("qtype") = "" then
%>
Show advanced search form here...
<%
else
dim ixQuery, ixRs, docTitle, strURL
set ixQuery = Server.CreateObject("ixsso .Query")
ixQuery.Catalog = "CatalogName"
ixQuery.Columns =
"filename,size,rank,charac terization ,vpath,Doc Title,writ e"
ixQuery.SortBy = "rank[d]"
ixQuery.CiFlags = "DEEP"
ixQuery.CiScope = "/"
ixQuery.MaxRecords = 300
ixQuery.Query = "(" & Request.Form("strQuery") & ") & (! #vpath *\_vti*) &
(! #vpath *\_private\*) & (! #vpath *\_derived\*) & (! #vpath *\_themes\*) &
(! #vpath *\_overlay\*) & (! #vpath *\_fpclass\*) & (! #vpath *\_borders\*)
& (! #vpath *\includes\*) & (! #vpath *\scripts\*) & (! #vpath *\images\*)"
set ixRs = ixQuery.CreateRecordset("n onsequenti al")
ixRs.PageSize = 15
if ixRs.RecordCount <=0 then
Response.Write("<p>No matches found</p>")
else
do while not ixRs.eof
docTitle = ixRs("doctitle")
if docTitle = "" then
docTitle = "Untitled"
end if
select case Left(ixRs("vpath"),9)
case "/articles"
if right(ixRs("vpath"),9) <> "index.asp" then
strURL = "http://www.domainname.com/articles/index.asp?artid=" &
left(right(ixRs("vPath"),1 0),6)
else
strURL = "http://www.domainname.com" & ixRs("vpath")
end if
case else strURL = "http://www.domainname.com" & ixRs("vpath")
end select
Response.Write("<p><a href='" & strURL & "'>" & docTitle & "</a><br>")
Response.Write(" &nbs p; <b >Size:</b> " & ixRs("Size") & "<br>")
Response.Write(" &nbs p; <b >Author:</ b> " & ixRs("Write") &
"<br>")
Response.Write(" &nbs p; <b >URL:</b> " & strURL & "<br>")
Response.Write(" &nbs p; <b >Digest:</ b> " &
ixRs("characterization") & "</p>")
ixRs.MoveNext
loop
end if
set ixRs = nothing
set ixQuery = nothing
end if
%>
<!-- End of Main Content -->
I am using IIS5 Win2k Server, sp2. I have created a catalog and am querying
successfully from an asp page except for the characterization field. This
field does not get populated. I've attached my asp code below. Any help
would greatly be appreciated.
Thanks in advance!
-rg
==========================
<!-- Beginning of Main Content -->
<%
if Request.Form("qtype") = "" then
%>
Show advanced search form here...
<%
else
dim ixQuery, ixRs, docTitle, strURL
set ixQuery = Server.CreateObject("ixsso
ixQuery.Catalog = "CatalogName"
ixQuery.Columns =
"filename,size,rank,charac
ixQuery.SortBy = "rank[d]"
ixQuery.CiFlags = "DEEP"
ixQuery.CiScope = "/"
ixQuery.MaxRecords = 300
ixQuery.Query = "(" & Request.Form("strQuery") & ") & (! #vpath *\_vti*) &
(! #vpath *\_private\*) & (! #vpath *\_derived\*) & (! #vpath *\_themes\*) &
(! #vpath *\_overlay\*) & (! #vpath *\_fpclass\*) & (! #vpath *\_borders\*)
& (! #vpath *\includes\*) & (! #vpath *\scripts\*) & (! #vpath *\images\*)"
set ixRs = ixQuery.CreateRecordset("n
ixRs.PageSize = 15
if ixRs.RecordCount <=0 then
Response.Write("<p>No matches found</p>")
else
do while not ixRs.eof
docTitle = ixRs("doctitle")
if docTitle = "" then
docTitle = "Untitled"
end if
select case Left(ixRs("vpath"),9)
case "/articles"
if right(ixRs("vpath"),9) <> "index.asp" then
strURL = "http://www.domainname.com/articles/index.asp?artid=" &
left(right(ixRs("vPath"),1
else
strURL = "http://www.domainname.com" & ixRs("vpath")
end if
case else strURL = "http://www.domainname.com" & ixRs("vpath")
end select
Response.Write("<p><a href='" & strURL & "'>" & docTitle & "</a><br>")
Response.Write(" &nbs
Response.Write(" &nbs
"<br>")
Response.Write(" &nbs
Response.Write(" &nbs
ixRs("characterization") & "</p>")
ixRs.MoveNext
loop
end if
set ixRs = nothing
set ixQuery = nothing
end if
%>
<!-- End of Main Content -->
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oops.. I found it.
ASKER
Thanks for you help...
Thanks
Happy to help you
Happy to help you
Heya,
I'm having the same problem, except I have Generation set to true...Any Ideas?
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20285402
I'm having the same problem, except I have Generation set to true...Any Ideas?
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20285402
ASKER