Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Index Server Catalog Problem

Status
Not open for further replies.

StevenB

IS-IT--Management
Sep 25, 2000
247
US
Howdy folks. I'm trying a number of different ways to have ASP connect to my IndexServer 2.0 catalog, but no matter which way I try, I get the following error:

CreateRecordset error '8004181d'
There is no catalog.

The thing is, there IS a catalog. A lot of the ASP pages I've been trying to do this don't specify the name of the catalog anywhere. How does ASP know where the catalog is?

Any ideas?

Thanks! [sig][/sig]
 
Did you specify the catalog in your ASP code?
try this.. here i specified my search catalog is
in " directory

Set objQuery = Server.CreateObject("ixsso.Query")
objQuery.Query = Request("txtQuery")
objQuery.Columns="filename,vpath,DocTitle"
objQuery.Catalog = "C:\Inetpub\objQuery.MaxRecords = 50

reponse.write(&quot;Search Result<BR>&quot;)
If rsQuery.EOF then
%>
Not match
<% else %>
... display search result

example: response.write rsQuery(&quot;doctitle&quot;)


<% end if %>


hope this help

Pepper
 
Hmm, that actually worked! So, I have success to a certain extent - I actually get results when I search.

However, the next problem is this: the results that come up look like this:

Untitled
URL:
And when I click on the link, I get page not found. Do you happen to know where all of those numbers come from? I understand why the Untitled - the document in question doesn't have a title. However, why doesn't it pick up the correct URL? [sig][/sig]
 
To pick up the collect url , try put this in your display result page..

<br><A href=&quot;<%=rsQuery(&quot;vpaht&quot;)%>&quot;>
<%=rsQuery(&quot;doctitle&quot;)%></A>

(P.S) make sure you have include &quot;vpath&quot; in your columns property --> objQuery.Columns=&quot;filename,vpath,DocTitle&quot;

for more information about index server, you can visit this site..
Pepper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top