|
Home > Archive > IIS Index Server > February 2004 > Hilary can u help? Indexing from another server
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 |
Hilary can u help? Indexing from another server
|
|
| Brenda 2004-02-05, 6:39 am |
| Hey guys,
I have asked for help once and no one knows exactly what
I'm talking about or I just don't understand their options.
I'm trying to index Docs directory that's located in
LPserver3. I'm indexing from LPweb, which it's where our
intranet is located at. In LPWeb, the index server works
perfectly fine, but if I create a search page in LPWeb, so
it can be access by anyone in the company, it does not
return any information. Someone told me about this link:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/indexsrv/html/ixuwebov_8mpf.asp , which
it's no help for me because it does not tell me what to do
in my code. Here's the code that I use: (Where I'm having
trouble is the hlink part)Please help me out, I'll really
appreciate your help.
<%
FormScope ="/"
PageSize = 1000
MaxRecords=1000
SearchString = Request.Form("SearchString")
CatalogToSearch = "HDocs"
SearchRankOrder="rank[d]"
OrigSearch=SearchString
set Q = Server.CreateObject("ixsso.Query")
set util = Server.CreateObject("ixsso.Util")
Q.Query = SearchString
Q.Catalog = CatalogToSearch
Q.Sortby = SearchRankOrder
Q.Columns = "DocTitle, vpath, filename, size, write,
characterization, rank, directory, path"
Q.MaxRecords = MaxRecords
util.AddScopeToQuery Q, "/", "deep"
set RS = Q.CreateRecordSet("nonsequential")
RS.PageSize = PageSize
response.write "<p> <font face='Arial' size='2'> Your
search for <b>" & OrigSearch & "</b> yielded "
'response.write "<p> Your Search for <b> & OrigSearch
& "</b> yielded "
If RS.RecordCount=0 then response.write "no results."
If RS.RecordCount=1 then response.write "1 result:"
If RS.RecordCount >1 then response.write RS.RecordCount
& " results:"
response.write "<table border = 1> <tr><td> Document
Title</td><td>Vpath</td><td>Filename</td>"
response.write"<td>Size</td><td>Write</td><td>Characterizat
ion</td><td>Rank</td>"
response.write "<td>Directory</td><td>Path</td></tr>"
Do While Not RS.EOF
hlink = "<a href=""/lpserver3" &RS("Vpath") &RS
("filename") & """>" & RS("doctitle") & "</a>"
response.write "<tr><td>" & hlink & "</td><td>" & RS
("Vpath") & "</td><td>"
response.write RS("filename") & "</td><td>" & RS("size")
& "</td><td>" & RS("write")
response.write "<tr><td>" & RS("characterization")
& "</td><td>" & RS("rank")
response.write "<tr><td>" & RS("directory") & "</td><td>"
& RS("path") & "</td><tr>"
RS.MoveNext
Loop
response.write "</table>"
set rs=nothing
set q=nothing
set util=nothing
%>
| |
| George Cheng [MSFT] 2004-02-06, 9:37 am |
| I'm not sure what you mean by
In LPWeb, the index server works
perfectly fine, but if I create a search page in LPWeb, so
it can be access by anyone in the company, it does not
return any information
Does the mmc search page work? Do the attached sample pages work?
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: "Brenda" <bvazquez@lplegal.com>
| Sender: "Brenda" <bvazquez@lplegal.com>
| Subject: Hilary can u help? Indexing from another server
| Date: Thu, 5 Feb 2004 12:14:17 -0800
| Lines: 81
| Message-ID: <b05501c3ec24$a1febd30$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
| Thread-Index: AcPsJKH+nNhJWpSBTg+x7ZA+U8O1DA==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.inetserver.indexserver
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.inetserver.indexserver:27471
| NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
| X-Tomcat-NG: microsoft.public.inetserver.indexserver
|
| Hey guys,
|
| I have asked for help once and no one knows exactly what
| I'm talking about or I just don't understand their options.
|
| I'm trying to index Docs directory that's located in
| LPserver3. I'm indexing from LPweb, which it's where our
| intranet is located at. In LPWeb, the index server works
| perfectly fine, but if I create a search page in LPWeb, so
| it can be access by anyone in the company, it does not
| return any information. Someone told me about this link:
| http://msdn.microsoft.com/library/default.asp?
| url=/library/en-us/indexsrv/html/ixuwebov_8mpf.asp , which
| it's no help for me because it does not tell me what to do
| in my code. Here's the code that I use: (Where I'm having
| trouble is the hlink part)Please help me out, I'll really
| appreciate your help.
|
|
| <%
| FormScope ="/"
| PageSize = 1000
| MaxRecords=1000
| SearchString = Request.Form("SearchString")
| CatalogToSearch = "HDocs"
| SearchRankOrder="rank[d]"
| OrigSearch=SearchString
|
| set Q = Server.CreateObject("ixsso.Query")
| set util = Server.CreateObject("ixsso.Util")
| Q.Query = SearchString
| Q.Catalog = CatalogToSearch
| Q.Sortby = SearchRankOrder
| Q.Columns = "DocTitle, vpath, filename, size, write,
| characterization, rank, directory, path"
| Q.MaxRecords = MaxRecords
|
| util.AddScopeToQuery Q, "/", "deep"
|
| set RS = Q.CreateRecordSet("nonsequential")
| RS.PageSize = PageSize
| response.write "<p> <font face='Arial' size='2'> Your
| search for <b>" & OrigSearch & "</b> yielded "
| 'response.write "<p> Your Search for <b> & OrigSearch
| & "</b> yielded "
|
| If RS.RecordCount=0 then response.write "no results."
| If RS.RecordCount=1 then response.write "1 result:"
| If RS.RecordCount >1 then response.write RS.RecordCount
| & " results:"
|
| response.write "<table border = 1> <tr><td> Document
| Title</td><td>Vpath</td><td>Filename</td>"
| response.write"<td>Size</td><td>Write</td><td>Characterizat
| ion</td><td>Rank</td>"
| response.write "<td>Directory</td><td>Path</td></tr>"
|
| Do While Not RS.EOF
|
| hlink = "<a href=""/lpserver3" &RS("Vpath") &RS
| ("filename") & """>" & RS("doctitle") & "</a>"
|
|
| response.write "<tr><td>" & hlink & "</td><td>" & RS
| ("Vpath") & "</td><td>"
| response.write RS("filename") & "</td><td>" & RS("size")
| & "</td><td>" & RS("write")
| response.write "<tr><td>" & RS("characterization")
| & "</td><td>" & RS("rank")
| response.write "<tr><td>" & RS("directory") & "</td><td>"
| & RS("path") & "</td><tr>"
|
| RS.MoveNext
| Loop
|
| response.write "</table>"
| set rs=nothing
| set q=nothing
| set util=nothing
| %>
|
|
| |
| Brenda 2004-02-06, 9:37 am |
| The mmc page works, and the code that I posted also works,
it's just tells me that there are 0 records. My search
page is in ASP and I know it works because I created an
ASP search page for another server and it works fine.
>-----Original Message-----
>I'm not sure what you mean by
>
> In LPWeb, the index server works
>perfectly fine, but if I create a search page in LPWeb,
so
>it can be access by anyone in the company, it does not
>return any information
>
>Does the mmc search page work? Do the attached sample
pages work?
>
>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: "Brenda" <bvazquez@lplegal.com>
>| Sender: "Brenda" <bvazquez@lplegal.com>
>| Subject: Hilary can u help? Indexing from another server
>| Date: Thu, 5 Feb 2004 12:14:17 -0800
>| Lines: 81
>| Message-ID: <b05501c3ec24$a1febd30$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
>| Thread-Index: AcPsJKH+nNhJWpSBTg+x7ZA+U8O1DA==
>| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>| Newsgroups: microsoft.public.inetserver.indexserver
>| Path: cpmsftngxa07.phx.gbl
>| Xref: cpmsftngxa07.phx.gbl
microsoft.public.inetserver.indexserver:27471
>| NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
>| X-Tomcat-NG: microsoft.public.inetserver.indexserver
>|
>| Hey guys,
>|
>| I have asked for help once and no one knows exactly
what
>| I'm talking about or I just don't understand their
options.
>|
>| I'm trying to index Docs directory that's located in
>| LPserver3. I'm indexing from LPweb, which it's where
our
>| intranet is located at. In LPWeb, the index server
works
>| perfectly fine, but if I create a search page in LPWeb,
so
>| it can be access by anyone in the company, it does not
>| return any information. Someone told me about this
link:
>| http://msdn.microsoft.com/library/default.asp?
>| url=/library/en-us/indexsrv/html/ixuwebov_8mpf.asp ,
which
>| it's no help for me because it does not tell me what to
do
>| in my code. Here's the code that I use: (Where I'm
having
>| trouble is the hlink part)Please help me out, I'll
really
>| appreciate your help.
>|
>|
>| <%
>| FormScope ="/"
>| PageSize = 1000
>| MaxRecords=1000
>| SearchString = Request.Form("SearchString")
>| CatalogToSearch = "HDocs"
>| SearchRankOrder="rank[d]"
>| OrigSearch=SearchString
>|
>| set Q = Server.CreateObject("ixsso.Query")
>| set util = Server.CreateObject("ixsso.Util")
>| Q.Query = SearchString
>| Q.Catalog = CatalogToSearch
>| Q.Sortby = SearchRankOrder
>| Q.Columns = "DocTitle, vpath, filename, size, write,
>| characterization, rank, directory, path"
>| Q.MaxRecords = MaxRecords
>|
>| util.AddScopeToQuery Q, "/", "deep"
>|
>| set RS = Q.CreateRecordSet("nonsequential")
>| RS.PageSize = PageSize
>| response.write "<p> <font face='Arial' size='2'> Your
>| search for <b>" & OrigSearch & "</b> yielded "
>| 'response.write "<p> Your Search for <b> & OrigSearch
>| & "</b> yielded "
>|
>| If RS.RecordCount=0 then response.write "no results."
>| If RS.RecordCount=1 then response.write "1 result:"
>| If RS.RecordCount >1 then response.write RS.RecordCount
>| & " results:"
>|
>| response.write "<table border = 1> <tr><td> Document
>| Title</td><td>Vpath</td><td>Filename</td>"
>|
response.write"<td>Size</td><td>Write</td><td>Characterizat
>| ion</td><td>Rank</td>"
>| response.write "<td>Directory</td><td>Path</td></tr>"
>|
>| Do While Not RS.EOF
>|
>| hlink = "<a href=""/lpserver3" &RS("Vpath") &RS
>| ("filename") & """>" & RS("doctitle") & "</a>"
>|
>|
>| response.write "<tr><td>" & hlink & "</td><td>" & RS
>| ("Vpath") & "</td><td>"
>| response.write RS("filename") & "</td><td>" & RS
("size")
>| & "</td><td>" & RS("write")
>| response.write "<tr><td>" & RS("characterization")
>| & "</td><td>" & RS("rank")
>| response.write "<tr><td>" & RS("directory")
& "</td><td>"
>| & RS("path") & "</td><tr>"
>|
>| RS.MoveNext
>| Loop
>|
>| response.write "</table>"
>| set rs=nothing
>| set q=nothing
>| set util=nothing
>| %>
>|
>|
|
|
|
|
|