IIS Index Server - Query ok from MMC but return no results from asp search

This is Interesting: Free IT Magazines  
Home > Archive > IIS Index Server > July 2004 > Query ok from MMC but return no results from asp search





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 Query ok from MMC but return no results from asp search
St?phane Dubois

2004-07-01, 5:56 pm

On a w2k server I have My default web site with a virtual directory
When I query the catalog "Web" from the MMC, I can find all my
documents, but
when I query the catalog from an asp page, I can't get documents from
the virtual directory, I get only documents of the web site root.

Here is the asp code:
set Q = Server.CreateObject("ixsso.Query")
Q.CATALOG="web"
Q.Query = SearchString
Q.SortBy = "write[d]"
Q.Columns = "Vpath, FileName, Write"
Q.MaxRecords = 100
set RS = Q.CreateRecordSet("nonsequential")
Do While Not RS.EOF
Response.Write "<a href='"& RS("Vpath") & "'>" & RS("VPath") &
"</a><br>"
RS.Movenext
Loop
RS.Close
George Cheng [MSFT]

2004-07-01, 5:57 pm

When you view your directories in the Index Server mmc, are they regular
folders or folders with globes?

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: duboisst@hotmail.com (St?phane Dubois)
| Newsgroups: microsoft.public.inetserver.indexserver
| Subject: Query ok from MMC but return no results from asp search
| Date: 1 Jul 2004 08:45:54 -0700
| Organization: http://groups.google.com
| Lines: 20
| Message-ID: <a3798900.0407010745.6410c118@posting.google.com>
| NNTP-Posting-Host: 194.51.237.210
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1088696755 27227 127.0.0.1 (1 Jul 2004
15:45:55 GMT)
| X-Complaints-To: groups-abuse@google.com
| NNTP-Posting-Date: Thu, 1 Jul 2004 15:45:55 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news.glorb.com!postnews2.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.indexserver:28885
| X-Tomcat-NG: microsoft.public.inetserver.indexserver
|
| On a w2k server I have My default web site with a virtual directory
| When I query the catalog "Web" from the MMC, I can find all my
| documents, but
| when I query the catalog from an asp page, I can't get documents from
| the virtual directory, I get only documents of the web site root.
|
| Here is the asp code:
| set Q = Server.CreateObject("ixsso.Query")
| Q.CATALOG="web"
| Q.Query = SearchString
| Q.SortBy = "write[d]"
| Q.Columns = "Vpath, FileName, Write"
| Q.MaxRecords = 100
| set RS = Q.CreateRecordSet("nonsequential")
| Do While Not RS.EOF
| Response.Write "<a href='"& RS("Vpath") & "'>" & RS("VPath") &
| "</a><br>"
| RS.Movenext
| Loop
| RS.Close
|

St?phane Dubois

2004-07-05, 7:50 am

folders with globes.

But I found the problem : the virtual directory wasn't reachable for
anonymous users. I gave the read right to the user IUSR_<machine> on
the virtual directory and now everything is ok.

Thanks.
Stephane Dubois

GCheng@online.microsoft.com ("George Cheng [MSFT]") wrote in message news:<QLR6PZ6XEHA.1580@cpmsftngxa06.phx.gbl>...
> When you view your directories in the Index Server mmc, are they regular
> folders or folders with globes?
>
> 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: duboisst@hotmail.com (St?phane Dubois)
> | Newsgroups: microsoft.public.inetserver.indexserver
> | Subject: Query ok from MMC but return no results from asp search
> | Date: 1 Jul 2004 08:45:54 -0700
> | Organization: http://groups.google.com
> | Lines: 20
> | Message-ID: <a3798900.0407010745.6410c118@posting.google.com>
> | NNTP-Posting-Host: 194.51.237.210
> | Content-Type: text/plain; charset=ISO-8859-1
> | Content-Transfer-Encoding: 8bit
> | X-Trace: posting.google.com 1088696755 27227 127.0.0.1 (1 Jul 2004
> 15:45:55 GMT)
> | X-Complaints-To: groups-abuse@google.com
> | NNTP-Posting-Date: Thu, 1 Jul 2004 15:45:55 +0000 (UTC)
> | Path:
> cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
> e.de!news.glorb.com!postnews2.google.com!not-for-mail
> | Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.indexserver:28885
> | X-Tomcat-NG: microsoft.public.inetserver.indexserver
> |
> | On a w2k server I have My default web site with a virtual directory
> | When I query the catalog "Web" from the MMC, I can find all my
> | documents, but
> | when I query the catalog from an asp page, I can't get documents from
> | the virtual directory, I get only documents of the web site root.
> |
> | Here is the asp code:
> | set Q = Server.CreateObject("ixsso.Query")
> | Q.CATALOG="web"
> | Q.Query = SearchString
> | Q.SortBy = "write[d]"
> | Q.Columns = "Vpath, FileName, Write"
> | Q.MaxRecords = 100
> | set RS = Q.CreateRecordSet("nonsequential")
> | Do While Not RS.EOF
> | Response.Write "<a href='"& RS("Vpath") & "'>" & RS("VPath") &
> | "</a><br>"
> | RS.Movenext
> | Loop
> | RS.Close
> |

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com