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!

Can not get any value from vpath using Index Server.Could anyone help?

Status
Not open for further replies.

Ayac

Programmer
Nov 10, 2000
141
HU
I set up several index catalogs under and using
3 simple files for retrieving the information. "nos.html"
sends the query to "nos.idq" what uses "Retrieve.htx" to
display the information. Everything seems to be good except
"vpath", I can not get any results back from that variable. Can anyone help me?

Here are the codes, all of them located under
\ The catalog files are located under
\ (each catalog has its own folder,
so I just picked out one for now).

-------------- nos.html

<html>
<head>
<title>Search Results</title>
</head>
<body bgcolor=&quot;#FFFFFF&quot;>
<FORM ACTION=&quot;/indexsearch/nos.idq&quot; METHOD=&quot;GET&quot;>
Query : <INPUT TYPE=&quot;TEXT&quot; NAME=&quot;Restriction&quot; SIZE=&quot;60&quot; MAXLENGTH=&quot;100&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;SUBMIT&quot; VALUE=&quot;Execute Query&quot;>
</FORM>
</body>
</html>

------------------- nos.idq

[Query]
CiColumns=filename,size,rank,Characterization,vpath,path,DocTitle,write,Create,Directory
CiCatalog=c:\InetPub\CiRestriction=%Restriction%
CiMaxRecordsPerPage=300
CiMaxRecordsInResultSet=300
CiSort=rank[d]
CiTemplate=/indexsearch/Retrieve.htx

------------------------------- Retrieve.htx

<%begindetail%>
<table width=100% border=1 cellpadding=3 cellspacing=0>
<tr><td>
<font face=&quot;times, arial&quot; size=4><b><%CiCurrentRecordNumber%>.</b>
<font face=&quot;times, arial&quot; size=3> Filename: <b><A HREF=&quot;<%EscapeURL vpath%>&quot; target=_blank><%EscapeURL vpath%><%filename%></A> </B> (<%size%> KBytes) (Rank: <%rank%>)<br>
Title: <B><%DocTitle%></B><br>
Created: <B><%Create%></b><%path%><BR>
File updated: <B><%write%></B><BR>
<i><%Characterization%></i>
</td></tr></table><br>
<%enddetail%>

-------------------------------------

Many thanks in advance,
Ayac
 
OK guys, I have solved the problem myself, but I write it
down, so it could be useful for others too:

Go to the mmc terminal where you can see your indexing
folders set up. Right click in the left window's indexing
folder's properties. Then select &quot;Tracking&quot; and in the
middle of the window, choose a for the catalog.
That is the key. If the is not set up, the vpath
variable will not return any value, because it will not know
where to refer to....

Ayac
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top