|
Home > Archive > IIS Index Server > April 2004 > Incomplete results returned
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Incomplete results returned
|
|
| Microsoft 2004-03-14, 7:35 pm |
| When I do a search on my web site from the search page I get incomplete and
old results returned. If I go to the Indexing Service MMC and query the
catalog, the proper results are returned. Any idea how to get the peoper
results on the web page?
| |
| George Cheng [MSFT] 2004-03-15, 12:36 pm |
| Have you tested with the samples from the Platform SDK?
Thank You
George Cheng
Microsoft Application Center & Index Server Support
Note: This article has no warranties implicit or explicit.
All the content is given on the "as is" basis and the user
takes full responsibility for its use and assumption.
Microsoft Corporation Copyright 2004
All Rights Reserved
--------------------
| From: "Microsoft" <rpatla(removethis)@wi.rr.com>
| Subject: Incomplete results returned
| Date: Sun, 14 Mar 2004 18:01:13 -0600
| Lines: 6
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.inetserver.indexserver
| NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com 24.211.20.157
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.indexserver:27962
| X-Tomcat-NG: microsoft.public.inetserver.indexserver
|
| When I do a search on my web site from the search page I get incomplete
and
| old results returned. If I go to the Indexing Service MMC and query the
| catalog, the proper results are returned. Any idea how to get the peoper
| results on the web page?
|
|
|
| |
| Ron Patla 2004-03-16, 11:42 am |
| George,
I'm afraid Platform SDK is a bit over my head. I'm running XP Pro with IIS
5.1 with 4 sub webs. I'm just trying to figure out why the search function
is not returning correct results on my web site.
Thanks,
Ron Patla
""George Cheng [MSFT]"" <GCheng@online.microsoft.com> wrote in message
news:b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl...
> Have you tested with the samples from the Platform SDK?
>
> Thank You
>
> George Cheng
>
> Microsoft Application Center & Index Server Support
>
> Note: This article has no warranties implicit or explicit.
> All the content is given on the "as is" basis and the user
> takes full responsibility for its use and assumption.
> Microsoft Corporation Copyright 2004
> All Rights Reserved
>
> --------------------
> | From: "Microsoft" <rpatla(removethis)@wi.rr.com>
> | Subject: Incomplete results returned
> | Date: Sun, 14 Mar 2004 18:01:13 -0600
> | Lines: 6
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | Message-ID: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
> | Newsgroups: microsoft.public.inetserver.indexserver
> | NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com 24.211.20.157
> | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> | Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.indexserver:27962
> | X-Tomcat-NG: microsoft.public.inetserver.indexserver
> |
> | When I do a search on my web site from the search page I get incomplete
> and
> | old results returned. If I go to the Indexing Service MMC and query the
> | catalog, the proper results are returned. Any idea how to get the
peoper
> | results on the web page?
> |
> |
> |
| |
| George Cheng [MSFT] 2004-03-16, 11:42 am |
| Does your internet user have read access to your content? Are you indexing
a web site? Test the following query.asp page:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<HTML>
<HEAD>
<%
' ********** INSTRUCTIONS FOR QUICK CUSTOMIZATION **********
'
' This form is set up for easy customization. It allows you to modify the
' page logo, the page background, the page title and simple query
' parameters by modifying a few files and form variables. The procedures
' to do this are explained below.
'
'
' *** Modifying the Form Logo:
' The logo for the form is named is2logo.gif. To change the page logo,
simply
' name your logo is2logo.gif and place in the same directory as this form.
If
' your logo is not a GIF file, or you don't want to copy it, change the
following
' line so that the logo variable contains the URL to your logo.
FormLogo = "is2logo.gif"
'
' *** Modifying the Form's background pattern.
' You can use either a background pattern or a background color for your
' form. If you want to use a background pattern, store the file with the
name
' is2bkgnd.gif in the same directory as this file and remove the remark
character
' the single quote character) from the line below. Then put the remark
character on
' the second line below.
'
' If you want to use a different background color than white, simply edit
the
' bgcolor line below, replacing white with your color choice.
' FormBG = "background = " & chr(34) & "is2bkgnd.gif" & chr(34)
FormBG = "bgcolor = " & chr(34) & "#FFFFFF" & chr(34)
' *** Modifying the Form's Title Text.
' The Form's title text is set on the following line.
%>
<TITLE>Sample ASP Search Form</TITLE>
<%
'
' *** Modifying the Form's Search Scope.
'
' The form will search from the root of your web server's namespace and
below
' (deep from "/" ). To search a subset of your server, for example, maybe
just
' a PressReleases directory, modify the scope variable below to list the
' virtual path to search. The search will start at the directory you specify
' and include all sub-directories.
FormScope = "/"
'
' *** Modifying the Number of Returned Query Results.
'
' You can set the number of query results returned on a single page
' using the variable below.
PageSize = 10
'
' You can set the total number of query results returned using the
' variable below.
MaxResults = 300
'
' *** Setting the Locale.
'
' The following line sets the locale used for queries. In most cases, this
' should match the locale of the server. You can set the locale below.
SiteLocale = "EN-US"
'
' *** Enable saving active searches in session variables
'
' The following line enables using session state to save multi-page queries
' and avoid re-executing them when the user presses the Next Page button.
' This should be set FALSE if sessions are disabled using
AspAllowSessionState.
UseSessions = TRUE
' ********** END QUICK CUSTOMIZATION SECTIONS ***********
%>
<LINK REL=STYLESHEET HREF="is2style.css" TYPE="text/css">
<META NAME="DESCRIPTION" CONTENT="Sample ASP query form for Indexing
Service">
<META NAME="AUTHOR" CONTENT="Indexing Service Team">
<META NAME="KEYWORDS" CONTENT="query, content, hit">
<META NAME="SUBJECT" CONTENT="sample form">
<META NAME="MS.CATEGORY" CONTENT="Internet">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=Windows-1252">
<%
' Set Initial Conditions
NewQuery = FALSE
UseSavedQuery = FALSE
SearchString = ""
QueryForm = Request.ServerVariables("PATH_INFO")
' Did the user press a SUBMIT button to execute the form? If so get the
form variables.
if Request.ServerVariables("REQUEST_METHOD") = "POST" then
SearchString = Request.Form("SearchString")
Advanced = Request.Form("Advanced")
' NOTE: this will be true only if the button is actually pushed.
if Request.Form("Action") = "Go" then
NewQuery = TRUE
RankBase=1000
NextPageNumber = -1
end if
end if
if Request.ServerVariables("REQUEST_METHOD") = "GET" then
SearchString = Request.QueryString("qu")
Advanced = Request.QueryString("Advanced")
FormScope = Request.QueryString("sc")
RankBase = Request.QueryString("RankBase")
if Request.QueryString("pg") <> "" then
NextPageNumber = Request.QueryString("pg")
UseSavedQuery = UseSessions
NewQuery = not UseSessions
else
NewQuery = SearchString <> ""
NextPageNumber = -1
end if
end if
%>
</HEAD>
<BODY OnLoad="Init()" LANGUAGE="JSCRIPT" <%=FormBG%>>
<TABLE>
<TR><TD><A HREF="http://www.microsoft.com/ntserver/search"
target="_top"><IMG SRC ="<%=FormLogo%>" border=0 VALIGN=MIDDLE
ALIGN=LEFT></a></TD></TR>
<TR><TD ALIGN="RIGHT"><H3>Sample ASP Search Form</H3></TD></TR>
</TABLE>
<p>
<FORM NAME=QueryForm ACTION="<%=QueryForm%>" METHOD=POST>
<TABLE WIDTH=500>
<TR>
<TD>Enter your query below:</TD>
</TR>
<TR>
<TD><INPUT TYPE="TEXT" NAME="SearchString" SIZE="65"
MAXLENGTH="100" VALUE="<%=SearchString%>" TABINDEX=1></TD>
<TD><BUTTON TYPE=SUBMIT NAME="Action">Go</BUTTON></TD>
</TR>
<TR>
<TD ALIGN="RIGHT"><A HREF="ixtiphlp.htm">Tips for
searching</A></TD>
</TR>
<TR>
</TR>
<TR>
<TD><INPUT NAME="Advanced" TYPE=CHECKBOX<% if Advanced = "on"
then Response.Write(" CHECKED") end if %>>
Use <a href="ixtiphlp.htm">Advanced Query</a>.
</TD>
</TR>
</TABLE>
</FORM>
<BR>
<%
if NewQuery then
if UseSessions then
set Session("Query") = nothing
set Session("Recordset") = nothing
end if
NextRecordNumber = 1
' Remove any leading and ending quotes from SearchString
SrchStrLen = len(SearchString)
if left(SearchString, 1) = chr(34) then
SrchStrLen = SrchStrLen-1
SearchString = right(SearchString, SrchStrLen)
end if
if right(SearchString, 1) = chr(34) then
SrchStrLen = SrchStrLen-1
SearchString = left(SearchString, SrchStrLen)
end if
if Advanced<> "on" then
CompSearch = "{freetext} " & SearchString & "{/freetext}"
else
CompSearch = SearchString
end if
set Q = Server.CreateObject("ixsso.Query")
set Util = Server.CreateObject("ixsso.Util")
Q.Catalog = "web"
Q.Query = CompSearch
Q.SortBy = "rank[d]"
Q.Columns = "DocTitle, vpath, filename, size, write, characterization,
rank"
if MaxResults <> -1 then
Q.MaxRecords = MaxResults
end if
if FormScope <> "\" then
Util.AddScopeToQuery Q, FormScope, "deep"
end if
if SiteLocale<>"" then
Q.LocaleID = Util.ISOToLocaleID(SiteLocale)
end if
set Util = nothing
set RS = Q.CreateRecordSet("nonsequential")
RS.PageSize = PageSize
RS.CacheSize = PageSize
ActiveQuery = TRUE
elseif UseSavedQuery then
if IsObject( Session("Query") ) And IsObject( Session("RecordSet") )
then
set Q = Session("Query")
set RS = Session("RecordSet")
ActiveQuery = TRUE
else
Response.Write "ERROR - No saved query"
end if
end if
if ActiveQuery then
if RS.RecordCount <> -1 and NextPageNumber <> -1 then
RS.AbsolutePage = NextPageNumber
NextRecordNumber = RS.AbsolutePosition
end if
if not RS.EOF then
%>
<p>
<HR WIDTH=80% ALIGN=center SIZE=3>
<p>
<%
LastRecordOnPage = NextRecordNumber + RS.PageSize - 1
CurrentPage = RS.AbsolutePage
if RS.RecordCount <> -1 AND RS.RecordCount < LastRecordOnPage then
LastRecordOnPage = RS.RecordCount
end if
Response.Write "Documents " & NextRecordNumber & " to " &
LastRecordOnPage
if RS.RecordCount <> -1 then
Response.Write " of " & RS.RecordCount
end if
Response.Write " matching the query " & chr(34) & "<I>"
Response.Write SearchString & "</I>" & chr(34) & ".<P>"
%>
<% if Not RS.EOF and NextRecordNumber <= LastRecordOnPage then%>
<table border=0>
<colgroup width=105>
<% end if %>
<% Do While Not RS.EOF and NextRecordNumber <= LastRecordOnPage
' This is the detail portion for Title, Abstract, URL, Size, and
' Modification Date.
' If there is a title, display it, otherwise display the filename.
%>
<p>
<%
' Graphically indicate rank of document with list of stars (*'s).
if NextRecordNumber = 1 then
RankBase=RS("rank")
end if
if RankBase>1000 then
RankBase=1000
elseif RankBase<1 then
RankBase=1
end if
NormRank = RS("rank")/RankBase
if NormRank > 0.80 then
stars = "rankbtn5.gif"
elseif NormRank > 0.60 then
stars = "rankbtn4.gif"
elseif NormRank > 0.40 then
stars = "rankbtn3.gif"
elseif NormRank >.20 then
stars = "rankbtn2.gif"
else
stars = "rankbtn1.gif"
end if
%>
<tr class="RecordTitle">
<td align="right" valign=top class="RecordTitle">
<%= NextRecordNumber%>.
</td>
<td><b class="RecordTitle">
<%if VarType(RS("DocTitle")) = 1 or RS("DocTitle") = ""
then%>
<a
href="java script:NAF('http://<%=Request.ServerVariables("SERVER_NAME")%><%=R
S("vpath")%>','<%=SearchString%>')" class="RecordTitle"><%=
Server.HTMLEncode( RS("filename") )%></a>
<%else%>
<a
href="java script:NAF('http://<%=Request.ServerVariables("SERVER_NAME")%><%=R
S("vpath")%>','<%=SearchString%>')" class="RecordTitle"><%=
Server.HTMLEncode(RS("DocTitle"))%></a>
<%end if%>
</b></td>
</tr>
<tr>
<td valign=top align=left>
<IMG SRC="<%=stars%>">
<br>
<%
' Construct the URL for hit highlighting
WebHitsQuery = "CiWebHitsFile=" & Server.URLEncode( RS("vpath") )
WebHitsQuery = WebHitsQuery & "&CiRestriction=" & Server.URLEncode(
Q.Query )
WebHitsQuery = WebHitsQuery & "&CiBeginHilite=" & Server.URLEncode(
"<strong class=Hit>" )
WebHitsQuery = WebHitsQuery & "&CiEndHilite=" & Server.URLEncode(
"</strong>" )
WebHitsQuery = WebHitsQuery & "&CiUserParam3=" & QueryForm
' WebHitsQuery = WebHitsQuery & "&CiLocale=" & Q.LocaleID
%>
<a href="qsumrhit.htw?<%= WebHitsQuery %>">
<IMG src="hilight.gif" align=left alt="Highlight matching
terms in document using Summary mode."> Summary</a>
<br>
<a href="qfullhit.htw?<%= WebHitsQuery
%>&CiHiliteType=Full">
<IMG src="hilight.gif" align=left alt="Highlight matching
terms in document."> Full</a>
</td>
<td valign=top>
<%if VarType(RS("characterization")) = 8 and
RS("characterization") <> "" then%>
<b><i>Abstract: </i></b>
<%= Server.HTMLEncode(RS("characterization"))%>
<%end if%>
<p>
<i class="RecordStats"><a
href="java script:NAF('http://<%=Request.ServerVariables("SERVER_NAME")%><%=R
S("vpath")%>','<%=SearchString%>')" class="RecordStats"
style="color:blue;">http://<%=Request("server_name")%><%=RS("vpath")%></a>
<br><%if RS("size") = "" then%>(size and time
unknown)<%else%>size <%=RS("size")%> bytes - <%=RS("write")%> GMT<%end
if%></i>
</td>
</tr>
<tr>
</tr>
<%
RS.MoveNext
NextRecordNumber = NextRecordNumber+1
Loop
%>
</table>
<P><BR>
<%
else ' NOT RS.EOF
if NextRecordNumber = 1 then
Response.Write "No documents matched the query<P>"
else
Response.Write "No more documents in the query<P>"
end if
end if ' NOT RS.EOF
if NOT Q.OutOfDate then
' If the index is current, display the fact %>
<P>
<I><B>The index is up to date.</B></I><BR>
<%end if
if Q.QueryIncomplete then
' If the query was not executed because it needed to enumerate to
' resolve the query instead of using the index, but AllowEnumeration
' was FALSE, let the user know
%>
<P>
<I><B>The query is too expensive to complete.</B></I><BR>
<%end if
if Q.QueryTimedOut then
' If the query took too long to execute (for example, if too much work
' was required to resolve the query), let the user know %>
<P>
<I><B>The query took too long to complete.</B></I><BR>
<%end if%>
<TABLE>
<%
' This is the "previous" button.
' This retrieves the previous page of documents for the query.
SaveQuery = FALSE
if CurrentPage > 1 and RS.RecordCount <> -1 then %>
<td align=left>
<form action="<%=QueryForm%>" method="get">
<INPUT TYPE="HIDDEN" NAME="qu" VALUE="<%=SearchString%>">
<INPUT TYPE="HIDDEN" NAME="Advanced" VALUE="<%=Advanced%>">
<INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
<INPUT TYPE="HIDDEN" NAME="pg" VALUE="<%=CurrentPage-1%>" >
<INPUT TYPE="HIDDEN" NAME="RankBase" VALUE="<%=RankBase%>">
<input type="submit" value="Previous <%=RS.PageSize%>
documents">
</form>
</td>
<%SaveQuery = UseSessions%>
<%end if%>
<%
' This is the "next" button for unsorted queries.
' This retrieves the next page of documents for the query.
if Not RS.EOF then%>
<td align=right>
<form action="<%=QueryForm%>" method="get">
<INPUT TYPE="HIDDEN" NAME="qu" VALUE="<%=SearchString%>">
<INPUT TYPE="HIDDEN" NAME="Advanced" VALUE="<%=Advanced%>">
<INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
<INPUT TYPE="HIDDEN" NAME="pg" VALUE="<%=CurrentPage+1%>">
<INPUT TYPE="HIDDEN" NAME="RankBase" VALUE="<%=RankBase%>">
<%
NextString = "Next "
if RS.RecordCount <> -1 then
NextSet = (RS.RecordCount - NextRecordNumber) + 1
if NextSet > RS.PageSize then
NextSet = RS.PageSize
end if
NextString = NextString & NextSet & " documents"
else
NextString = NextString & " page of documents"
end if
%>
<input type="submit" value="<%=NextString%>">
</form>
</td>
<%SaveQuery = UseSessions%>
<%end if%>
</TABLE>
<% ' Display the page number
if RS.PageCount <> 0 then
Response.Write "Page " & CurrentPage
if RS.PageCount <> -1 then
Response.Write " of " & RS.PageCount
end if
end if
%>
<%
' If either of the previous or back buttons were displayed, save the
query
' and the recordset in session variables.
if SaveQuery then
set Session("Query") = Q
set Session("RecordSet") = RS
else
RS.close
Set RS = Nothing
Set Q = Nothing
if UseSessions then
set Session("Query") = Nothing
set Session("RecordSet") = Nothing
end if
end if
%>
<% end if %>
<BR>
</BODY>
<SCRIPT LANGUAGE=JSCRIPT>
function Init()
{
QueryForm.SearchString.focus();
}
function msieversion()
{
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE");
if (msie>0)
return parseInt(ua.substring(msie+5, ua.indexOf(".", msie)));
else
return 0;
}
function NAF(szUrl, szQuery)
{
if (msieversion() >= 5)
window.external.NavigateAndFind(szUrl, szQuery, "_main");
else
window.navigate(szUrl, target="_main");
}
</SCRIPT>
</HTML>
Thank You
George Cheng
Microsoft Application Center & Index Server Support
Note: This article has no warranties implicit or explicit.
All the content is given on the "as is" basis and the user
takes full responsibility for its use and assumption.
Microsoft Corporation Copyright 2004
All Rights Reserved
--------------------
| From: "Ron Patla" <rpatla(removethis)@wi.rr.com>
| References: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
<b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl>
| Subject: Re: Incomplete results returned
| Date: Tue, 16 Mar 2004 09:08:13 -0600
| Lines: 59
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#AQrJi2CEHA.2656@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.inetserver.indexserver
| NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com 24.211.20.157
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.indexserver:27992
| X-Tomcat-NG: microsoft.public.inetserver.indexserver
|
| George,
|
|
|
| I'm afraid Platform SDK is a bit over my head. I'm running XP Pro with
IIS
| 5.1 with 4 sub webs. I'm just trying to figure out why the search
function
| is not returning correct results on my web site.
|
|
|
| Thanks,
|
| Ron Patla
|
|
|
| ""George Cheng [MSFT]"" <GCheng@online.microsoft.com> wrote in message
| news:b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl...
| > Have you tested with the samples from the Platform SDK?
| >
| > Thank You
| >
| > George Cheng
| >
| > Microsoft Application Center & Index Server Support
| >
| > Note: This article has no warranties implicit or explicit.
| > All the content is given on the "as is" basis and the user
| > takes full responsibility for its use and assumption.
| > Microsoft Corporation Copyright 2004
| > All Rights Reserved
| >
| > --------------------
| > | From: "Microsoft" <rpatla(removethis)@wi.rr.com>
| > | Subject: Incomplete results returned
| > | Date: Sun, 14 Mar 2004 18:01:13 -0600
| > | Lines: 6
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.inetserver.indexserver
| > | NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com 24.211.20.157
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetserver.indexserver:27962
| > | X-Tomcat-NG: microsoft.public.inetserver.indexserver
| > |
| > | When I do a search on my web site from the search page I get
incomplete
| > and
| > | old results returned. If I go to the Indexing Service MMC and query
the
| > | catalog, the proper results are returned. Any idea how to get the
| peoper
| > | results on the web page?
| > |
| > |
| > |
|
|
|
| |
| Ron Patla 2004-03-17, 4:43 pm |
| George,
Thanks again for your help. Turns out I had to map the idq.dll in my IIS
configuration. All is working fine now.
Ron Patla
""George Cheng [MSFT]"" <GCheng@online.microsoft.com> wrote in message
news:CQ5mJA3CEHA.2488@cpmsftngxa06.phx.gbl...
> Does your internet user have read access to your content? Are you
indexing
> a web site? Test the following query.asp page:
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
> <HTML>
> <HEAD>
> <%
> ' ********** INSTRUCTIONS FOR QUICK CUSTOMIZATION **********
> '
> ' This form is set up for easy customization. It allows you to modify the
> ' page logo, the page background, the page title and simple query
> ' parameters by modifying a few files and form variables. The procedures
> ' to do this are explained below.
> '
> '
> ' *** Modifying the Form Logo:
>
> ' The logo for the form is named is2logo.gif. To change the page logo,
> simply
> ' name your logo is2logo.gif and place in the same directory as this form.
> If
> ' your logo is not a GIF file, or you don't want to copy it, change the
> following
> ' line so that the logo variable contains the URL to your logo.
>
> FormLogo = "is2logo.gif"
>
> '
> ' *** Modifying the Form's background pattern.
>
> ' You can use either a background pattern or a background color for your
> ' form. If you want to use a background pattern, store the file with the
> name
> ' is2bkgnd.gif in the same directory as this file and remove the remark
> character
> ' the single quote character) from the line below. Then put the remark
> character on
> ' the second line below.
> '
> ' If you want to use a different background color than white, simply edit
> the
> ' bgcolor line below, replacing white with your color choice.
>
> ' FormBG = "background = " & chr(34) & "is2bkgnd.gif" & chr(34)
> FormBG = "bgcolor = " & chr(34) & "#FFFFFF" & chr(34)
>
>
> ' *** Modifying the Form's Title Text.
>
> ' The Form's title text is set on the following line.
>
> %>
> <TITLE>Sample ASP Search Form</TITLE>
> <%
> '
> ' *** Modifying the Form's Search Scope.
> '
> ' The form will search from the root of your web server's namespace and
> below
> ' (deep from "/" ). To search a subset of your server, for example, maybe
> just
> ' a PressReleases directory, modify the scope variable below to list the
> ' virtual path to search. The search will start at the directory you
specify
> ' and include all sub-directories.
>
> FormScope = "/"
>
> '
> ' *** Modifying the Number of Returned Query Results.
> '
> ' You can set the number of query results returned on a single page
> ' using the variable below.
>
> PageSize = 10
> '
> ' You can set the total number of query results returned using the
> ' variable below.
>
> MaxResults = 300
>
> '
> ' *** Setting the Locale.
> '
> ' The following line sets the locale used for queries. In most cases, this
> ' should match the locale of the server. You can set the locale below.
>
> SiteLocale = "EN-US"
>
> '
> ' *** Enable saving active searches in session variables
> '
> ' The following line enables using session state to save multi-page
queries
> ' and avoid re-executing them when the user presses the Next Page button.
> ' This should be set FALSE if sessions are disabled using
> AspAllowSessionState.
>
> UseSessions = TRUE
>
> ' ********** END QUICK CUSTOMIZATION SECTIONS ***********
> %>
>
> <LINK REL=STYLESHEET HREF="is2style.css" TYPE="text/css">
>
> <META NAME="DESCRIPTION" CONTENT="Sample ASP query form for Indexing
> Service">
> <META NAME="AUTHOR" CONTENT="Indexing Service Team">
> <META NAME="KEYWORDS" CONTENT="query, content, hit">
> <META NAME="SUBJECT" CONTENT="sample form">
> <META NAME="MS.CATEGORY" CONTENT="Internet">
> <META NAME="MS.LOCALE" CONTENT="EN-US">
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
> charset=Windows-1252">
> <%
> ' Set Initial Conditions
> NewQuery = FALSE
> UseSavedQuery = FALSE
> SearchString = ""
>
> QueryForm = Request.ServerVariables("PATH_INFO")
>
> ' Did the user press a SUBMIT button to execute the form? If so get the
> form variables.
> if Request.ServerVariables("REQUEST_METHOD") = "POST" then
> SearchString = Request.Form("SearchString")
> Advanced = Request.Form("Advanced")
> ' NOTE: this will be true only if the button is actually pushed.
> if Request.Form("Action") = "Go" then
> NewQuery = TRUE
> RankBase=1000
> NextPageNumber = -1
> end if
> end if
> if Request.ServerVariables("REQUEST_METHOD") = "GET" then
> SearchString = Request.QueryString("qu")
> Advanced = Request.QueryString("Advanced")
> FormScope = Request.QueryString("sc")
> RankBase = Request.QueryString("RankBase")
> if Request.QueryString("pg") <> "" then
> NextPageNumber = Request.QueryString("pg")
> UseSavedQuery = UseSessions
> NewQuery = not UseSessions
> else
> NewQuery = SearchString <> ""
> NextPageNumber = -1
> end if
> end if
> %>
> </HEAD>
>
> <BODY OnLoad="Init()" LANGUAGE="JSCRIPT" <%=FormBG%>>
>
> <TABLE>
> <TR><TD><A HREF="http://www.microsoft.com/ntserver/search"
> target="_top"><IMG SRC ="<%=FormLogo%>" border=0 VALIGN=MIDDLE
> ALIGN=LEFT></a></TD></TR>
> <TR><TD ALIGN="RIGHT"><H3>Sample ASP Search Form</H3></TD></TR>
> </TABLE>
>
> <p>
>
> <FORM NAME=QueryForm ACTION="<%=QueryForm%>" METHOD=POST>
> <TABLE WIDTH=500>
> <TR>
> <TD>Enter your query below:</TD>
> </TR>
> <TR>
> <TD><INPUT TYPE="TEXT" NAME="SearchString" SIZE="65"
> MAXLENGTH="100" VALUE="<%=SearchString%>" TABINDEX=1></TD>
> <TD><BUTTON TYPE=SUBMIT NAME="Action">Go</BUTTON></TD>
> </TR>
> <TR>
> <TD ALIGN="RIGHT"><A HREF="ixtiphlp.htm">Tips for
> searching</A></TD>
> </TR>
> <TR>
> </TR>
> <TR>
> <TD><INPUT NAME="Advanced" TYPE=CHECKBOX<% if Advanced = "on"
> then Response.Write(" CHECKED") end if %>>
> Use <a href="ixtiphlp.htm">Advanced Query</a>.
> </TD>
> </TR>
> </TABLE>
> </FORM>
>
> <BR>
>
> <%
> if NewQuery then
> if UseSessions then
> set Session("Query") = nothing
> set Session("Recordset") = nothing
> end if
> NextRecordNumber = 1
>
> ' Remove any leading and ending quotes from SearchString
>
> SrchStrLen = len(SearchString)
>
> if left(SearchString, 1) = chr(34) then
> SrchStrLen = SrchStrLen-1
> SearchString = right(SearchString, SrchStrLen)
> end if
>
> if right(SearchString, 1) = chr(34) then
> SrchStrLen = SrchStrLen-1
> SearchString = left(SearchString, SrchStrLen)
> end if
>
> if Advanced<> "on" then
> CompSearch = "{freetext} " & SearchString & "{/freetext}"
> else
> CompSearch = SearchString
> end if
>
> set Q = Server.CreateObject("ixsso.Query")
> set Util = Server.CreateObject("ixsso.Util")
>
> Q.Catalog = "web"
> Q.Query = CompSearch
> Q.SortBy = "rank[d]"
> Q.Columns = "DocTitle, vpath, filename, size, write, characterization,
> rank"
>
> if MaxResults <> -1 then
> Q.MaxRecords = MaxResults
> end if
>
> if FormScope <> "\" then
> Util.AddScopeToQuery Q, FormScope, "deep"
> end if
>
> if SiteLocale<>"" then
> Q.LocaleID = Util.ISOToLocaleID(SiteLocale)
> end if
> set Util = nothing
>
> set RS = Q.CreateRecordSet("nonsequential")
>
> RS.PageSize = PageSize
> RS.CacheSize = PageSize
> ActiveQuery = TRUE
>
> elseif UseSavedQuery then
> if IsObject( Session("Query") ) And IsObject( Session("RecordSet") )
> then
> set Q = Session("Query")
> set RS = Session("RecordSet")
>
> ActiveQuery = TRUE
> else
> Response.Write "ERROR - No saved query"
> end if
> end if
>
> if ActiveQuery then
> if RS.RecordCount <> -1 and NextPageNumber <> -1 then
> RS.AbsolutePage = NextPageNumber
> NextRecordNumber = RS.AbsolutePosition
> end if
>
> if not RS.EOF then
> %>
>
> <p>
> <HR WIDTH=80% ALIGN=center SIZE=3>
> <p>
>
> <%
> LastRecordOnPage = NextRecordNumber + RS.PageSize - 1
> CurrentPage = RS.AbsolutePage
> if RS.RecordCount <> -1 AND RS.RecordCount < LastRecordOnPage then
> LastRecordOnPage = RS.RecordCount
> end if
>
> Response.Write "Documents " & NextRecordNumber & " to " &
> LastRecordOnPage
> if RS.RecordCount <> -1 then
> Response.Write " of " & RS.RecordCount
> end if
> Response.Write " matching the query " & chr(34) & "<I>"
> Response.Write SearchString & "</I>" & chr(34) & ".<P>"
> %>
>
> <% if Not RS.EOF and NextRecordNumber <= LastRecordOnPage then%>
> <table border=0>
> <colgroup width=105>
> <% end if %>
>
> <% Do While Not RS.EOF and NextRecordNumber <= LastRecordOnPage
>
> ' This is the detail portion for Title, Abstract, URL, Size, and
> ' Modification Date.
>
> ' If there is a title, display it, otherwise display the filename.
> %>
> <p>
> <%
> ' Graphically indicate rank of document with list of stars (*'s).
>
> if NextRecordNumber = 1 then
> RankBase=RS("rank")
> end if
>
> if RankBase>1000 then
> RankBase=1000
> elseif RankBase<1 then
> RankBase=1
> end if
>
> NormRank = RS("rank")/RankBase
>
> if NormRank > 0.80 then
> stars = "rankbtn5.gif"
> elseif NormRank > 0.60 then
> stars = "rankbtn4.gif"
> elseif NormRank > 0.40 then
> stars = "rankbtn3.gif"
> elseif NormRank >.20 then
> stars = "rankbtn2.gif"
> else
> stars = "rankbtn1.gif"
> end if
> %>
> <tr class="RecordTitle">
> <td align="right" valign=top class="RecordTitle">
> <%= NextRecordNumber%>.
> </td>
> <td><b class="RecordTitle">
> <%if VarType(RS("DocTitle")) = 1 or RS("DocTitle") = ""
> then%>
> <a
>
href="java script:NAF('http://<%=Request.ServerVariables("SERVER_NAME")%><%=R
> S("vpath")%>','<%=SearchString%>')" class="RecordTitle"><%=
> Server.HTMLEncode( RS("filename") )%></a>
> <%else%>
> <a
>
href="java script:NAF('http://<%=Request.ServerVariables("SERVER_NAME")%><%=R
> S("vpath")%>','<%=SearchString%>')" class="RecordTitle"><%=
> Server.HTMLEncode(RS("DocTitle"))%></a>
> <%end if%>
> </b></td>
> </tr>
>
> <tr>
> <td valign=top align=left>
> <IMG SRC="<%=stars%>">
> <br>
> <%
> ' Construct the URL for hit highlighting
> WebHitsQuery = "CiWebHitsFile=" & Server.URLEncode( RS("vpath") )
> WebHitsQuery = WebHitsQuery & "&CiRestriction=" &
Server.URLEncode(
> Q.Query )
> WebHitsQuery = WebHitsQuery & "&CiBeginHilite=" &
Server.URLEncode(
> "<strong class=Hit>" )
> WebHitsQuery = WebHitsQuery & "&CiEndHilite=" & Server.URLEncode(
> "</strong>" )
> WebHitsQuery = WebHitsQuery & "&CiUserParam3=" & QueryForm
> ' WebHitsQuery = WebHitsQuery & "&CiLocale=" & Q.LocaleID
> %>
> <a href="qsumrhit.htw?<%= WebHitsQuery %>">
> <IMG src="hilight.gif" align=left alt="Highlight matching
> terms in document using Summary mode."> Summary</a>
> <br>
> <a href="qfullhit.htw?<%= WebHitsQuery
> %>&CiHiliteType=Full">
> <IMG src="hilight.gif" align=left alt="Highlight matching
> terms in document."> Full</a>
> </td>
> <td valign=top>
> <%if VarType(RS("characterization")) = 8 and
> RS("characterization") <> "" then%>
> <b><i>Abstract: </i></b>
> <%= Server.HTMLEncode(RS("characterization"))%>
> <%end if%>
> <p>
> <i class="RecordStats"><a
>
href="java script:NAF('http://<%=Request.ServerVariables("SERVER_NAME")%><%=R
> S("vpath")%>','<%=SearchString%>')" class="RecordStats"
> style="color:blue;">http://<%=Request("server_name")%><%=RS("vpath")%></a>
> <br><%if RS("size") = "" then%>(size and time
> unknown)<%else%>size <%=RS("size")%> bytes - <%=RS("write")%> GMT<%end
> if%></i>
> </td>
> </tr>
> <tr>
> </tr>
> <%
> RS.MoveNext
> NextRecordNumber = NextRecordNumber+1
> Loop
> %>
>
> </table>
> <P><BR>
>
> <%
> else ' NOT RS.EOF
> if NextRecordNumber = 1 then
> Response.Write "No documents matched the query<P>"
> else
> Response.Write "No more documents in the query<P>"
> end if
>
> end if ' NOT RS.EOF
>
>
> if NOT Q.OutOfDate then
> ' If the index is current, display the fact %>
> <P>
> <I><B>The index is up to date.</B></I><BR>
> <%end if
>
>
> if Q.QueryIncomplete then
> ' If the query was not executed because it needed to enumerate to
> ' resolve the query instead of using the index, but AllowEnumeration
> ' was FALSE, let the user know
> %>
> <P>
> <I><B>The query is too expensive to complete.</B></I><BR>
> <%end if
>
>
> if Q.QueryTimedOut then
> ' If the query took too long to execute (for example, if too much work
> ' was required to resolve the query), let the user know %>
> <P>
> <I><B>The query took too long to complete.</B></I><BR>
> <%end if%>
>
> <TABLE>
>
> <%
> ' This is the "previous" button.
> ' This retrieves the previous page of documents for the query.
>
> SaveQuery = FALSE
> if CurrentPage > 1 and RS.RecordCount <> -1 then %>
> <td align=left>
> <form action="<%=QueryForm%>" method="get">
> <INPUT TYPE="HIDDEN" NAME="qu" VALUE="<%=SearchString%>">
> <INPUT TYPE="HIDDEN" NAME="Advanced" VALUE="<%=Advanced%>">
> <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
> <INPUT TYPE="HIDDEN" NAME="pg" VALUE="<%=CurrentPage-1%>" >
> <INPUT TYPE="HIDDEN" NAME="RankBase" VALUE="<%=RankBase%>">
> <input type="submit" value="Previous <%=RS.PageSize%>
> documents">
> </form>
> </td>
> <%SaveQuery = UseSessions%>
> <%end if%>
>
> <%
> ' This is the "next" button for unsorted queries.
> ' This retrieves the next page of documents for the query.
>
> if Not RS.EOF then%>
> <td align=right>
> <form action="<%=QueryForm%>" method="get">
> <INPUT TYPE="HIDDEN" NAME="qu" VALUE="<%=SearchString%>">
> <INPUT TYPE="HIDDEN" NAME="Advanced" VALUE="<%=Advanced%>">
> <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
> <INPUT TYPE="HIDDEN" NAME="pg" VALUE="<%=CurrentPage+1%>">
> <INPUT TYPE="HIDDEN" NAME="RankBase" VALUE="<%=RankBase%>">
> <%
> NextString = "Next "
> if RS.RecordCount <> -1 then
> NextSet = (RS.RecordCount - NextRecordNumber) + 1
> if NextSet > RS.PageSize then
> NextSet = RS.PageSize
> end if
> NextString = NextString & NextSet & " documents"
> else
> NextString = NextString & " page of documents"
> end if
> %>
> <input type="submit" value="<%=NextString%>">
> </form>
> </td>
> <%SaveQuery = UseSessions%>
> <%end if%>
>
> </TABLE>
>
> <% ' Display the page number
>
> if RS.PageCount <> 0 then
> Response.Write "Page " & CurrentPage
> if RS.PageCount <> -1 then
> Response.Write " of " & RS.PageCount
> end if
> end if
> %>
> <%
> ' If either of the previous or back buttons were displayed, save the
> query
> ' and the recordset in session variables.
> if SaveQuery then
> set Session("Query") = Q
> set Session("RecordSet") = RS
> else
> RS.close
> Set RS = Nothing
> Set Q = Nothing
> if UseSessions then
> set Session("Query") = Nothing
> set Session("RecordSet") = Nothing
> end if
> end if
> %>
> <% end if %>
> <BR>
>
>
> </BODY>
>
> <SCRIPT LANGUAGE=JSCRIPT>
> function Init()
> {
> QueryForm.SearchString.focus();
> }
>
> function msieversion()
> {
> var ua = window.navigator.userAgent;
> var msie = ua.indexOf("MSIE");
> if (msie>0)
> return parseInt(ua.substring(msie+5, ua.indexOf(".", msie)));
> else
> return 0;
> }
>
> function NAF(szUrl, szQuery)
> {
> if (msieversion() >= 5)
> window.external.NavigateAndFind(szUrl, szQuery, "_main");
> else
> window.navigate(szUrl, target="_main");
> }
> </SCRIPT>
>
> </HTML>
>
>
> Thank You
>
> George Cheng
>
> Microsoft Application Center & Index Server Support
>
> Note: This article has no warranties implicit or explicit.
> All the content is given on the "as is" basis and the user
> takes full responsibility for its use and assumption.
> Microsoft Corporation Copyright 2004
> All Rights Reserved
>
> --------------------
> | From: "Ron Patla" <rpatla(removethis)@wi.rr.com>
> | References: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
> <b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl>
> | Subject: Re: Incomplete results returned
> | Date: Tue, 16 Mar 2004 09:08:13 -0600
> | Lines: 59
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | Message-ID: <#AQrJi2CEHA.2656@TK2MSFTNGP12.phx.gbl>
> | Newsgroups: microsoft.public.inetserver.indexserver
> | NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com 24.211.20.157
> | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> | Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.indexserver:27992
> | X-Tomcat-NG: microsoft.public.inetserver.indexserver
> |
> | George,
> |
> |
> |
> | I'm afraid Platform SDK is a bit over my head. I'm running XP Pro with
> IIS
> | 5.1 with 4 sub webs. I'm just trying to figure out why the search
> function
> | is not returning correct results on my web site.
> |
> |
> |
> | Thanks,
> |
> | Ron Patla
> |
> |
> |
> | ""George Cheng [MSFT]"" <GCheng@online.microsoft.com> wrote in message
> | news:b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl...
> | > Have you tested with the samples from the Platform SDK?
> | >
> | > Thank You
> | >
> | > George Cheng
> | >
> | > Microsoft Application Center & Index Server Support
> | >
> | > Note: This article has no warranties implicit or explicit.
> | > All the content is given on the "as is" basis and the user
> | > takes full responsibility for its use and assumption.
> | > Microsoft Corporation Copyright 2004
> | > All Rights Reserved
> | >
> | > --------------------
> | > | From: "Microsoft" <rpatla(removethis)@wi.rr.com>
> | > | Subject: Incomplete results returned
> | > | Date: Sun, 14 Mar 2004 18:01:13 -0600
> | > | Lines: 6
> | > | X-Priority: 3
> | > | X-MSMail-Priority: Normal
> | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | > | Message-ID: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
> | > | Newsgroups: microsoft.public.inetserver.indexserver
> | > | NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com 24.211.20.157
> | > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> | > | Xref: cpmsftngxa06.phx.gbl
> microsoft.public.inetserver.indexserver:27962
> | > | X-Tomcat-NG: microsoft.public.inetserver.indexserver
> | > |
> | > | When I do a search on my web site from the search page I get
> incomplete
> | > and
> | > | old results returned. If I go to the Indexing Service MMC and query
> the
> | > | catalog, the proper results are returned. Any idea how to get the
> | peoper
> | > | results on the web page?
> | > |
> | > |
> | > |
> |
> |
> |
>
| |
|
| I am having this problem too.. what is this all about?
Turns out I had to map the idq.dll in my IIS
configuration. All is working fine now.
>-----Original Message-----
>George,
>
>Thanks again for your help. Turns out I had to map the
idq.dll in my IIS
>configuration. All is working fine now.
>
>Ron Patla
>
>""George Cheng [MSFT]"" <GCheng@online.microsoft.com>
wrote in message
>news:CQ5mJA3CEHA.2488@cpmsftngxa06.phx.gbl...
content? Are you[color=darkred]
>indexing
3.0//EN" "html.dtd">[color=darkred]
**********[color=darkred]
you to modify the[color=darkred]
simple query[color=darkred]
variables. The procedures[color=darkred]
the page logo,[color=darkred]
directory as this form.[color=darkred]
copy it, change the[color=darkred]
your logo.[color=darkred]
background color for your[color=darkred]
the file with the[color=darkred]
remove the remark[color=darkred]
put the remark[color=darkred]
white, simply edit[color=darkred]
choice.[color=darkred]
& "is2bkgnd.gif" & chr(34)[color=darkred]
chr(34)[color=darkred]
server's namespace and[color=darkred]
for example, maybe[color=darkred]
below to list the[color=darkred]
directory you[color=darkred]
>specify
single page[color=darkred]
returned using the[color=darkred]
In most cases, this[color=darkred]
the locale below.[color=darkred]
save multi-page[color=darkred]
>queries
Next Page button.[color=darkred]
using[color=darkred]
***********[color=darkred]
TYPE="text/css">[color=darkred]
form for Indexing[color=darkred]
Team">[color=darkred]
hit">[color=darkred]
form? If so get the[color=darkred]
= "POST" then[color=darkred]
actually pushed.[color=darkred]
= "GET" then[color=darkred]
HREF="http://www.microsoft.com/ntserver/search"[color=darkred]
VALIGN=MIDDLE[color=darkred]
Form</H3></TD></TR>[color=darkred]
METHOD=POST>[color=darkred]
SIZE="65"[color=darkred]
TABINDEX=1></TD>[color=darkred]
NAME="Action">Go</BUTTON></TD>[color=darkred]
HREF="ixtiphlp.htm">Tips for[color=darkred]
if Advanced = "on"[color=darkred]
Query</a>.[color=darkred]
SearchString[color=darkred]
SrchStrLen)[color=darkred]
SrchStrLen)[color=darkred]
& "{/freetext}"[color=darkred]
write, characterization,[color=darkred]
Session("RecordSet") )[color=darkred]
then[color=darkred]
RS.PageSize - 1[color=darkred]
LastRecordOnPage then[color=darkred]
& " to " &[color=darkred]
& "<I>"[color=darkred]
& ".<P>"[color=darkred]
LastRecordOnPage then%>[color=darkred]
LastRecordOnPage[color=darkred]
URL, Size, and[color=darkred]
display the filename.[color=darkred]
of stars (*'s).[color=darkred]
class="RecordTitle">[color=darkred]
("DocTitle") = ""[color=darkred]
>href="java script:NAF('http://<%=Request.ServerVariables
("SERVER_NAME")%><%=R
class="RecordTitle"><%=[color=darkred]
>href="java script:NAF('http://<%=Request.ServerVariables
("SERVER_NAME")%><%=R
class="RecordTitle"><%=[color=darkred]
Server.URLEncode( RS("vpath") )[color=darkred]
&[color=darkred]
>Server.URLEncode(
&[color=darkred]
>Server.URLEncode(
Server.URLEncode([color=darkred]
& QueryForm[color=darkred]
Q.LocaleID[color=darkred]
>">
alt="Highlight matching[color=darkred]
alt="Highlight matching[color=darkred]
8 and[color=darkred]
("characterization"))%>[color=darkred]
>href="java script:NAF('http://<%=Request.ServerVariables
("SERVER_NAME")%><%=R
=RS("vpath")%></a>[color=darkred]
and time[color=darkred]
("write")%> GMT<%end[color=darkred]
query<P>"[color=darkred]
query<P>"[color=darkred]
enumerate to[color=darkred]
AllowEnumeration[color=darkred]
complete.</B></I><BR>[color=darkred]
example, if too much work[color=darkred]
know %>[color=darkred]
complete.</B></I><BR>[color=darkred]
the query.[color=darkred]
=SearchString%>">[color=darkred]
VALUE="<%=Advanced%>">[color=darkred]
=FormScope%>">[color=darkred]
=CurrentPage-1%>" >[color=darkred]
VALUE="<%=RankBase%>">[color=darkred]
=RS.PageSize%>[color=darkred]
query.[color=darkred]
=SearchString%>">[color=darkred]
VALUE="<%=Advanced%>">[color=darkred]
=FormScope%>">[color=darkred]
=CurrentPage+1%>">[color=darkred]
VALUE="<%=RankBase%>">[color=darkred]
NextRecordNumber) + 1[color=darkred]
& " documents"[color=darkred]
documents"[color=darkred]
>">
displayed, save the[color=darkred]
(".", msie)));[color=darkred]
szQuery, "_main");[color=darkred]
explicit.[color=darkred]
user[color=darkred]
V6.00.2800.1165[color=darkred]
24.211.20.157[color=darkred]
TK2MSFTNGP12.phx.gbl[color=darkred]
microsoft.public.inetserver.indexserver:27992[color=darkred]
running XP Pro with[color=darkred]
why the search[color=darkred]
wrote in message[color=darkred]
SDK?[color=darkred]
explicit.[color=darkred]
the user[color=darkred]
assumption.[color=darkred]
6.00.2800.1158[color=darkred]
V6.00.2800.1165[color=darkred]
<#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>[color=darkred]
microsoft.public.inetserver.indexserver[color=darkred]
24.211.20.157[color=darkred]
TK2MSFTNGP12.phx.gbl[color=darkred]
microsoft.public.inetserver.indexserver[color=darkred]
page I get[color=darkred]
Service MMC and query[color=darkred]
idea how to get the[color=darkred]
>
>
>.
>
| |
| George Cheng [MSFT] 2004-04-18, 10:44 am |
| Goto the properties of your website. Goto the home directory tab. Goto
configuration. Make sure a application mapping for .idq exists.
Thank You
George Cheng
Microsoft Application Center & Index Server Support
Note: This article has no warranties implicit or explicit.
All the content is given on the "as is" basis and the user
takes full responsibility for its use and assumption.
Microsoft Corporation Copyright 2004
All Rights Reserved
--------------------
| Content-Class: urn:content-classes:message
| From: <anonymous@discussions.microsoft.com>
| Sender: <anonymous@discussions.microsoft.com>
| References: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
<b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl>
<#AQrJi2CEHA.2656@TK2MSFTNGP12.phx.gbl>
<CQ5mJA3CEHA.2488@cpmsftngxa06.phx.gbl>
<ON3UTcDDEHA.3784@TK2MSFTNGP10.phx.gbl>
| Subject: Re: Incomplete results returned
| Date: Tue, 13 Apr 2004 02:06:03 -0700
| Lines: 807
| Message-ID: <1734901c42136$8bd0e410$a001280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcQhNovO7cLhhF1RT7GtooS/IQBXIQ==
| Newsgroups: microsoft.public.inetserver.indexserver
| Path: cpmsftngxa10.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.inetserver.indexserver:28665
| NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
| X-Tomcat-NG: microsoft.public.inetserver.indexserver
|
| I am having this problem too.. what is this all about?
|
| Turns out I had to map the idq.dll in my IIS
| configuration. All is working fine now.
|
| >-----Original Message-----
| >George,
| >
| >Thanks again for your help. Turns out I had to map the
| idq.dll in my IIS
| >configuration. All is working fine now.
| >
| >Ron Patla
| >
| >""George Cheng [MSFT]"" <GCheng@online.microsoft.com>
| wrote in message
| >news:CQ5mJA3CEHA.2488@cpmsftngxa06.phx.gbl...
| >> Does your internet user have read access to your
| content? Are you
| >indexing
| >> a web site? Test the following query.asp page:
| >>
| >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
| 3.0//EN" "html.dtd">
| >> <HTML>
| >> <HEAD>
| >> <%
| >> ' ********** INSTRUCTIONS FOR QUICK CUSTOMIZATION
| **********
| >> '
| >> ' This form is set up for easy customization. It allows
| you to modify the
| >> ' page logo, the page background, the page title and
| simple query
| >> ' parameters by modifying a few files and form
| variables. The procedures
| >> ' to do this are explained below.
| >> '
| >> '
| >> ' *** Modifying the Form Logo:
| >>
| >> ' The logo for the form is named is2logo.gif. To change
| the page logo,
| >> simply
| >> ' name your logo is2logo.gif and place in the same
| directory as this form.
| >> If
| >> ' your logo is not a GIF file, or you don't want to
| copy it, change the
| >> following
| >> ' line so that the logo variable contains the URL to
| your logo.
| >>
| >> FormLogo = "is2logo.gif"
| >>
| >> '
| >> ' *** Modifying the Form's background pattern.
| >>
| >> ' You can use either a background pattern or a
| background color for your
| >> ' form. If you want to use a background pattern, store
| the file with the
| >> name
| >> ' is2bkgnd.gif in the same directory as this file and
| remove the remark
| >> character
| >> ' the single quote character) from the line below. Then
| put the remark
| >> character on
| >> ' the second line below.
| >> '
| >> ' If you want to use a different background color than
| white, simply edit
| >> the
| >> ' bgcolor line below, replacing white with your color
| choice.
| >>
| >> ' FormBG = "background = " & chr(34)
| & "is2bkgnd.gif" & chr(34)
| >> FormBG = "bgcolor = " & chr(34) & "#FFFFFF" &
| chr(34)
| >>
| >>
| >> ' *** Modifying the Form's Title Text.
| >>
| >> ' The Form's title text is set on the following line.
| >>
| >> %>
| >> <TITLE>Sample ASP Search Form</TITLE>
| >> <%
| >> '
| >> ' *** Modifying the Form's Search Scope.
| >> '
| >> ' The form will search from the root of your web
| server's namespace and
| >> below
| >> ' (deep from "/" ). To search a subset of your server,
| for example, maybe
| >> just
| >> ' a PressReleases directory, modify the scope variable
| below to list the
| >> ' virtual path to search. The search will start at the
| directory you
| >specify
| >> ' and include all sub-directories.
| >>
| >> FormScope = "/"
| >>
| >> '
| >> ' *** Modifying the Number of Returned Query Results.
| >> '
| >> ' You can set the number of query results returned on a
| single page
| >> ' using the variable below.
| >>
| >> PageSize = 10
| >> '
| >> ' You can set the total number of query results
| returned using the
| >> ' variable below.
| >>
| >> MaxResults = 300
| >>
| >> '
| >> ' *** Setting the Locale.
| >> '
| >> ' The following line sets the locale used for queries.
| In most cases, this
| >> ' should match the locale of the server. You can set
| the locale below.
| >>
| >> SiteLocale = "EN-US"
| >>
| >> '
| >> ' *** Enable saving active searches in session variables
| >> '
| >> ' The following line enables using session state to
| save multi-page
| >queries
| >> ' and avoid re-executing them when the user presses the
| Next Page button.
| >> ' This should be set FALSE if sessions are disabled
| using
| >> AspAllowSessionState.
| >>
| >> UseSessions = TRUE
| >>
| >> ' ********** END QUICK CUSTOMIZATION SECTIONS
| ***********
| >> %>
| >>
| >> <LINK REL=STYLESHEET HREF="is2style.css"
| TYPE="text/css">
| >>
| >> <META NAME="DESCRIPTION" CONTENT="Sample ASP query
| form for Indexing
| >> Service">
| >> <META NAME="AUTHOR" CONTENT="Indexing Service
| Team">
| >> <META NAME="KEYWORDS" CONTENT="query, content,
| hit">
| >> <META NAME="SUBJECT" CONTENT="sample form">
| >> <META NAME="MS.CATEGORY" CONTENT="Internet">
| >> <META NAME="MS.LOCALE" CONTENT="EN-US">
| >> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
| >> charset=Windows-1252">
| >> <%
| >> ' Set Initial Conditions
| >> NewQuery = FALSE
| >> UseSavedQuery = FALSE
| >> SearchString = ""
| >>
| >> QueryForm = Request.ServerVariables("PATH_INFO")
| >>
| >> ' Did the user press a SUBMIT button to execute the
| form? If so get the
| >> form variables.
| >> if Request.ServerVariables("REQUEST_METHOD")
| = "POST" then
| >> SearchString = Request.Form("SearchString")
| >> Advanced = Request.Form("Advanced")
| >> ' NOTE: this will be true only if the button is
| actually pushed.
| >> if Request.Form("Action") = "Go" then
| >> NewQuery = TRUE
| >> RankBase=1000
| >> NextPageNumber = -1
| >> end if
| >> end if
| >> if Request.ServerVariables("REQUEST_METHOD")
| = "GET" then
| >> SearchString = Request.QueryString("qu")
| >> Advanced = Request.QueryString("Advanced")
| >> FormScope = Request.QueryString("sc")
| >> RankBase = Request.QueryString("RankBase")
| >> if Request.QueryString("pg") <> "" then
| >> NextPageNumber = Request.QueryString("pg")
| >> UseSavedQuery = UseSessions
| >> NewQuery = not UseSessions
| >> else
| >> NewQuery = SearchString <> ""
| >> NextPageNumber = -1
| >> end if
| >> end if
| >> %>
| >> </HEAD>
| >>
| >> <BODY OnLoad="Init()" LANGUAGE="JSCRIPT" <%=FormBG%>>
| >>
| >> <TABLE>
| >> <TR><TD><A
| HREF="http://www.microsoft.com/ntserver/search"
| >> target="_top"><IMG SRC ="<%=FormLogo%>" border=0
| VALIGN=MIDDLE
| >> ALIGN=LEFT></a></TD></TR>
| >> <TR><TD ALIGN="RIGHT"><H3>Sample ASP Search
| Form</H3></TD></TR>
| >> </TABLE>
| >>
| >> <p>
| >>
| >> <FORM NAME=QueryForm ACTION="<%=QueryForm%>"
| METHOD=POST>
| >> <TABLE WIDTH=500>
| >> <TR>
| >> <TD>Enter your query below:</TD>
| >> </TR>
| >> <TR>
| >> <TD><INPUT TYPE="TEXT" NAME="SearchString"
| SIZE="65"
| >> MAXLENGTH="100" VALUE="<%=SearchString%>"
| TABINDEX=1></TD>
| >> <TD><BUTTON TYPE=SUBMIT
| NAME="Action">Go</BUTTON></TD>
| >> </TR>
| >> <TR>
| >> <TD ALIGN="RIGHT"><A
| HREF="ixtiphlp.htm">Tips for
| >> searching</A></TD>
| >> </TR>
| >> <TR>
| >> </TR>
| >> <TR>
| >> <TD><INPUT NAME="Advanced" TYPE=CHECKBOX<%
| if Advanced = "on"
| >> then Response.Write(" CHECKED") end if %>>
| >> Use <a href="ixtiphlp.htm">Advanced
| Query</a>.
| >> </TD>
| >> </TR>
| >> </TABLE>
| >> </FORM>
| >>
| >> <BR>
| >>
| >> <%
| >> if NewQuery then
| >> if UseSessions then
| >> set Session("Query") = nothing
| >> set Session("Recordset") = nothing
| >> end if
| >> NextRecordNumber = 1
| >>
| >> ' Remove any leading and ending quotes from
| SearchString
| >>
| >> SrchStrLen = len(SearchString)
| >>
| >> if left(SearchString, 1) = chr(34) then
| >> SrchStrLen = SrchStrLen-1
| >> SearchString = right(SearchString,
| SrchStrLen)
| >> end if
| >>
| >> if right(SearchString, 1) = chr(34) then
| >> SrchStrLen = SrchStrLen-1
| >> SearchString = left(SearchString,
| SrchStrLen)
| >> end if
| >>
| >> if Advanced<> "on" then
| >> CompSearch = "{freetext} " & SearchString
| & "{/freetext}"
| >> else
| >> CompSearch = SearchString
| >> end if
| >>
| >> set Q = Server.CreateObject("ixsso.Query")
| >> set Util = Server.CreateObject("ixsso.Util")
| >>
| >> Q.Catalog = "web"
| >> Q.Query = CompSearch
| >> Q.SortBy = "rank[d]"
| >> Q.Columns = "DocTitle, vpath, filename, size,
| write, characterization,
| >> rank"
| >>
| >> if MaxResults <> -1 then
| >> Q.MaxRecords = MaxResults
| >> end if
| >>
| >> if FormScope <> "\" then
| >> Util.AddScopeToQuery Q, FormScope, "deep"
| >> end if
| >>
| >> if SiteLocale<>"" then
| >> Q.LocaleID = Util.ISOToLocaleID(SiteLocale)
| >> end if
| >> set Util = nothing
| >>
| >> set RS = Q.CreateRecordSet("nonsequential")
| >>
| >> RS.PageSize = PageSize
| >> RS.CacheSize = PageSize
| >> ActiveQuery = TRUE
| >>
| >> elseif UseSavedQuery then
| >> if IsObject( Session("Query") ) And IsObject(
| Session("RecordSet") )
| >> then
| >> set Q = Session("Query")
| >> set RS = Session("RecordSet")
| >>
| >> ActiveQuery = TRUE
| >> else
| >> Response.Write "ERROR - No saved query"
| >> end if
| >> end if
| >>
| >> if ActiveQuery then
| >> if RS.RecordCount <> -1 and NextPageNumber <> -1
| then
| >> RS.AbsolutePage = NextPageNumber
| >> NextRecordNumber = RS.AbsolutePosition
| >> end if
| >>
| >> if not RS.EOF then
| >> %>
| >>
| >> <p>
| >> <HR WIDTH=80% ALIGN=center SIZE=3>
| >> <p>
| >>
| >> <%
| >> LastRecordOnPage = NextRecordNumber +
| RS.PageSize - 1
| >> CurrentPage = RS.AbsolutePage
| >> if RS.RecordCount <> -1 AND RS.RecordCount <
| LastRecordOnPage then
| >> LastRecordOnPage = RS.RecordCount
| >> end if
| >>
| >> Response.Write "Documents " & NextRecordNumber
| & " to " &
| >> LastRecordOnPage
| >> if RS.RecordCount <> -1 then
| >> Response.Write " of " & RS.RecordCount
| >> end if
| >> Response.Write " matching the query " & chr(34)
| & "<I>"
| >> Response.Write SearchString & "</I>" & chr(34)
| & ".<P>"
| >> %>
| >>
| >> <% if Not RS.EOF and NextRecordNumber <=
| LastRecordOnPage then%>
| >> <table border=0>
| >> <colgroup width=105>
| >> <% end if %>
| >>
| >> <% Do While Not RS.EOF and NextRecordNumber <=
| LastRecordOnPage
| >>
| >> ' This is the detail portion for Title, Abstract,
| URL, Size, and
| >> ' Modification Date.
| >>
| >> ' If there is a title, display it, otherwise
| display the filename.
| >> %>
| >> <p>
| >> <%
| >> ' Graphically indicate rank of document with list
| of stars (*'s).
| >>
| >> if NextRecordNumber = 1 then
| >> RankBase=RS("rank")
| >> end if
| >>
| >> if RankBase>1000 then
| >> RankBase=1000
| >> elseif RankBase<1 then
| >> RankBase=1
| >> end if
| >>
| >> NormRank = RS("rank")/RankBase
| >>
| >> if NormRank > 0.80 then
| >> stars = "rankbtn5.gif"
| >> elseif NormRank > 0.60 then
| >> stars = "rankbtn4.gif"
| >> elseif NormRank > 0.40 then
| >> stars = "rankbtn3.gif"
| >> elseif NormRank >.20 then
| >> stars = "rankbtn2.gif"
| >> else
| >> stars = "rankbtn1.gif"
| >> end if
| >> %>
| >> <tr class="RecordTitle">
| >> <td align="right" valign=top
| class="RecordTitle">
| >> <%= NextRecordNumber%>.
| >> </td>
| >> <td><b class="RecordTitle">
| >> <%if VarType(RS("DocTitle")) = 1 or RS
| ("DocTitle") = ""
| >> then%>
| >> <a
| >>
| >href="java script:NAF('http://<%=Request.ServerVariables
| ("SERVER_NAME")%><%=R
| >> S("vpath")%>','<%=SearchString%>')"
| class="RecordTitle"><%=
| >> Server.HTMLEncode( RS("filename") )%></a>
| >> <%else%>
| >> <a
| >>
| >href="java script:NAF('http://<%=Request.ServerVariables
| ("SERVER_NAME")%><%=R
| >> S("vpath")%>','<%=SearchString%>')"
| class="RecordTitle"><%=
| >> Server.HTMLEncode(RS("DocTitle"))%></a>
| >> <%end if%>
| >> </b></td>
| >> </tr>
| >>
| >> <tr>
| >> <td valign=top align=left>
| >> <IMG SRC="<%=stars%>">
| >> <br>
| >> <%
| >> ' Construct the URL for hit highlighting
| >> WebHitsQuery = "CiWebHitsFile=" &
| Server.URLEncode( RS("vpath") )
| >> WebHitsQuery = WebHitsQuery & "&CiRestriction="
| &
| >Server.URLEncode(
| >> Q.Query )
| >> WebHitsQuery = WebHitsQuery & "&CiBeginHilite="
| &
| >Server.URLEncode(
| >> "<strong class=Hit>" )
| >> WebHitsQuery = WebHitsQuery & "&CiEndHilite=" &
| Server.URLEncode(
| >> "</strong>" )
| >> WebHitsQuery = WebHitsQuery & "&CiUserParam3="
| & QueryForm
| >> ' WebHitsQuery = WebHitsQuery & "&CiLocale=" &
| Q.LocaleID
| >> %>
| >> <a href="qsumrhit.htw?<%= WebHitsQuery %
| >">
| >> <IMG src="hilight.gif" align=left
| alt="Highlight matching
| >> terms in document using Summary mode."> Summary</a>
| >> <br>
| >> <a href="qfullhit.htw?<%= WebHitsQuery
| >> %>&CiHiliteType=Full">
| >> <IMG src="hilight.gif" align=left
| alt="Highlight matching
| >> terms in document."> Full</a>
| >> </td>
| >> <td valign=top>
| >> <%if VarType(RS("characterization")) =
| 8 and
| >> RS("characterization") <> "" then%>
| >> <b><i>Abstract: </i></b>
| >> <%= Server.HTMLEncode(RS
| ("characterization"))%>
| >> <%end if%>
| >> <p>
| >> <i class="RecordStats"><a
| >>
| >href="java script:NAF('http://<%=Request.ServerVariables
| ("SERVER_NAME")%><%=R
| >> S("vpath")%>','<%=SearchString%>')" class="RecordStats"
| >> style="color:blue;">http://<%=Request("server_name")%><%
| =RS("vpath")%></a>
| >> <br><%if RS("size") = "" then%>(size
| and time
| >> unknown)<%else%>size <%=RS("size")%> bytes - <%=RS
| ("write")%> GMT<%end
| >> if%></i>
| >> </td>
| >> </tr>
| >> <tr>
| >> </tr>
| >> <%
| >> RS.MoveNext
| >> NextRecordNumber = NextRecordNumber+1
| >> Loop
| >> %>
| >>
| >> </table>
| >> <P><BR>
| >>
| >> <%
| >> else ' NOT RS.EOF
| >> if NextRecordNumber = 1 then
| >> Response.Write "No documents matched the
| query<P>"
| >> else
| >> Response.Write "No more documents in the
| query<P>"
| >> end if
| >>
| >> end if ' NOT RS.EOF
| >>
| >>
| >> if NOT Q.OutOfDate then
| >> ' If the index is current, display the fact %>
| >> <P>
| >> <I><B>The index is up to date.</B></I><BR>
| >> <%end if
| >>
| >>
| >> if Q.QueryIncomplete then
| >> ' If the query was not executed because it needed to
| enumerate to
| >> ' resolve the query instead of using the index, but
| AllowEnumeration
| >> ' was FALSE, let the user know
| >> %>
| >> <P>
| >> <I><B>The query is too expensive to
| complete.</B></I><BR>
| >> <%end if
| >>
| >>
| >> if Q.QueryTimedOut then
| >> ' If the query took too long to execute (for
| example, if too much work
| >> ' was required to resolve the query), let the user
| know %>
| >> <P>
| >> <I><B>The query took too long to
| complete.</B></I><BR>
| >> <%end if%>
| >>
| >> <TABLE>
| >>
| >> <%
| >> ' This is the "previous" button.
| >> ' This retrieves the previous page of documents for
| the query.
| >>
| >> SaveQuery = FALSE
| >> if CurrentPage > 1 and RS.RecordCount <> -1 then %>
| >> <td align=left>
| >> <form action="<%=QueryForm%>" method="get">
| >> <INPUT TYPE="HIDDEN" NAME="qu" VALUE="<%
| =SearchString%>">
| >> <INPUT TYPE="HIDDEN" NAME="Advanced"
| VALUE="<%=Advanced%>">
| >> <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%
| =FormScope%>">
| >> <INPUT TYPE="HIDDEN" NAME="pg" VALUE="<%
| =CurrentPage-1%>" >
| >> <INPUT TYPE="HIDDEN" NAME="RankBase"
| VALUE="<%=RankBase%>">
| >> <input type="submit" value="Previous <%
| =RS.PageSize%>
| >> documents">
| >> </form>
| >> </td>
| >> <%SaveQuery = UseSessions%>
| >> <%end if%>
| >>
| >> <%
| >> ' This is the "next" button for unsorted queries.
| >> ' This retrieves the next page of documents for the
| query.
| >>
| >> if Not RS.EOF then%>
| >> <td align=right>
| >> <form action="<%=QueryForm%>" method="get">
| >> <INPUT TYPE="HIDDEN" NAME="qu" VALUE="<%
| =SearchString%>">
| >> <INPUT TYPE="HIDDEN" NAME="Advanced"
| VALUE="<%=Advanced%>">
| >> <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%
| =FormScope%>">
| >> <INPUT TYPE="HIDDEN" NAME="pg" VALUE="<%
| =CurrentPage+1%>">
| >> <INPUT TYPE="HIDDEN" NAME="RankBase"
| VALUE="<%=RankBase%>">
| >> <%
| >> NextString = "Next "
| >> if RS.RecordCount <> -1 then
| >> NextSet = (RS.RecordCount -
| NextRecordNumber) + 1
| >> if NextSet > RS.PageSize then
| >> NextSet = RS.PageSize
| >> end if
| >> NextString = NextString & NextSet
| & " documents"
| >> else
| >> NextString = NextString & " page of
| documents"
| >> end if
| >> %>
| >> <input type="submit" value="<%=NextString%
| >">
| >> </form>
| >> </td>
| >> <%SaveQuery = UseSessions%>
| >> <%end if%>
| >>
| >> </TABLE>
| >>
| >> <% ' Display the page number
| >>
| >> if RS.PageCount <> 0 then
| >> Response.Write "Page " & CurrentPage
| >> if RS.PageCount <> -1 then
| >> Response.Write " of " & RS.PageCount
| >> end if
| >> end if
| >> %>
| >> <%
| >> ' If either of the previous or back buttons were
| displayed, save the
| >> query
| >> ' and the recordset in session variables.
| >> if SaveQuery then
| >> set Session("Query") = Q
| >> set Session("RecordSet") = RS
| >> else
| >> RS.close
| >> Set RS = Nothing
| >> Set Q = Nothing
| >> if UseSessions then
| >> set Session("Query") = Nothing
| >> set Session("RecordSet") = Nothing
| >> end if
| >> end if
| >> %>
| >> <% end if %>
| >> <BR>
| >>
| >>
| >> </BODY>
| >>
| >> <SCRIPT LANGUAGE=JSCRIPT>
| >> function Init()
| >> {
| >> QueryForm.SearchString.focus();
| >> }
| >>
| >> function msieversion()
| >> {
| >> var ua = window.navigator.userAgent;
| >> var msie = ua.indexOf("MSIE");
| >> if (msie>0)
| >> return parseInt(ua.substring(msie+5, ua.indexOf
| (".", msie)));
| >> else
| >> return 0;
| >> }
| >>
| >> function NAF(szUrl, szQuery)
| >> {
| >> if (msieversion() >= 5)
| >> window.external.NavigateAndFind(szUrl,
| szQuery, "_main");
| >> else
| >> window.navigate(szUrl, target="_main");
| >> }
| >> </SCRIPT>
| >>
| >> </HTML>
| >>
| >>
| >> Thank You
| >>
| >> George Cheng
| >>
| >> Microsoft Application Center & Index Server Support
| >>
| >> Note: This article has no warranties implicit or
| explicit.
| >> All the content is given on the "as is" basis and the
| user
| >> takes full responsibility for its use and assumption.
| >> Microsoft Corporation Copyright 2004
| >> All Rights Reserved
| >>
| >> --------------------
| >> | From: "Ron Patla" <rpatla(removethis)@wi.rr.com>
| >> | References: <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
| >> <b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl>
| >> | Subject: Re: Incomplete results returned
| >> | Date: Tue, 16 Mar 2004 09:08:13 -0600
| >> | Lines: 59
| >> | X-Priority: 3
| >> | X-MSMail-Priority: Normal
| >> | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| >> | X-MimeOLE: Produced By Microsoft MimeOLE
| V6.00.2800.1165
| >> | Message-ID: <#AQrJi2CEHA.2656@TK2MSFTNGP12.phx.gbl>
| >> | Newsgroups: microsoft.public.inetserver.indexserver
| >> | NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com
| 24.211.20.157
| >> | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!
| TK2MSFTNGP12.phx.gbl
| >> | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.inetserver.indexserver:27992
| >> | X-Tomcat-NG: microsoft.public.inetserver.indexserver
| >> |
| >> | George,
| >> |
| >> |
| >> |
| >> | I'm afraid Platform SDK is a bit over my head. I'm
| running XP Pro with
| >> IIS
| >> | 5.1 with 4 sub webs. I'm just trying to figure out
| why the search
| >> function
| >> | is not returning correct results on my web site.
| >> |
| >> |
| >> |
| >> | Thanks,
| >> |
| >> | Ron Patla
| >> |
| >> |
| >> |
| >> | ""George Cheng [MSFT]"" <GCheng@online.microsoft.com>
| wrote in message
| >> | news:b4LNGMrCEHA.612@cpmsftngxa06.phx.gbl...
| >> | > Have you tested with the samples from the Platform
| SDK?
| >> | >
| >> | > Thank You
| >> | >
| >> | > George Cheng
| >> | >
| >> | > Microsoft Application Center & Index Server Support
| >> | >
| >> | > Note: This article has no warranties implicit or
| explicit.
| >> | > All the content is given on the "as is" basis and
| the user
| >> | > takes full responsibility for its use and
| assumption.
| >> | > Microsoft Corporation Copyright 2004
| >> | > All Rights Reserved
| >> | >
| >> | > --------------------
| >> | > | From: "Microsoft" <rpatla(removethis)@wi.rr.com>
| >> | > | Subject: Incomplete results returned
| >> | > | Date: Sun, 14 Mar 2004 18:01:13 -0600
| >> | > | Lines: 6
| >> | > | X-Priority: 3
| >> | > | X-MSMail-Priority: Normal
| >> | > | X-Newsreader: Microsoft Outlook Express
| 6.00.2800.1158
| >> | > | X-MimeOLE: Produced By Microsoft MimeOLE
| V6.00.2800.1165
| >> | > | Message-ID:
| <#yKapCiCEHA.1484@TK2MSFTNGP12.phx.gbl>
| >> | > | Newsgroups:
| microsoft.public.inetserver.indexserver
| >> | > | NNTP-Posting-Host: cpe-24-211-20-157.wi.rr.com
| 24.211.20.157
| >> | > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!
| TK2MSFTNGP12.phx.gbl
| >> | > | Xref: cpmsftngxa06.phx.gbl
| >> microsoft.public.inetserver.indexserver:27962
| >> | > | X-Tomcat-NG:
| microsoft.public.inetserver.indexserver
| >> | > |
| >> | > | When I do a search on my web site from the search
| page I get
| >> incomplete
| >> | > and
| >> | > | old results returned. If I go to the Indexing
| Service MMC and query
| >> the
| >> | > | catalog, the proper results are returned. Any
| idea how to get the
| >> | peoper
| >> | > | results on the web page?
| >> | > |
| >> | > |
| >> | > |
| >> |
| >> |
| >> |
| >>
| >
| >
| >.
| >
|
|
|
|
|
|