Link to home
Start Free TrialLog in
Avatar of rsgibson
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,characterization,vpath,DocTitle,write"
  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("nonsequential")
 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"),10),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("&nbsp;&nbsp;&nbsp;<b>Size:</b> " & ixRs("Size") & "<br>")
   Response.Write("&nbsp;&nbsp;&nbsp;<b>Author:</b> " & ixRs("Write") &
"<br>")
   Response.Write("&nbsp;&nbsp;&nbsp;<b>URL:</b> " & strURL & "<br>")
   Response.Write("&nbsp;&nbsp;&nbsp;<b>Digest:</b> " &
ixRs("characterization") & "</p>")

   ixRs.MoveNext
  loop
 end if

 set ixRs = nothing
 set ixQuery = nothing

end if
%>
<!-- End of Main Content -->
ASKER CERTIFIED SOLUTION
Avatar of plebras
plebras

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rsgibson
rsgibson

ASKER

Is that supposed to be a property?  I have a "generator" property, but no Generation or Gernerate Abstract.  Where would I set that?
Oops.. I found it.
Thanks for you help...
Thanks

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