Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:39 AM
Dave Karmens
Guest
 
Posts: n/a
Default Index Server & Site Server + PDFs

I fire the following code on Index Server (different obj) and it returns
a PDFs no problem, but when I change the object to use the MSSearch for
Site Server I don't get any PDFs. Anything in the code that would cause
this? I can see the PDFs getting crawled in Site Server, but when I try
and search I don't get any pdfs. :<




<%
Set objQuery = Server.CreateObject ("MSSearch.Query")
objQuery.Catalog = "test"
objQuery.Query = "jerkstore.pdf"
objQuery.Columns = "Title, DocAddress, Description, Rank"
objQuery.SortBy = "Rank[d], Title"
objQuery.MaxRecords = 100
Set objRS = objQuery.CreateRecordset ("sequential")
Response.Write objRS.Properties ("RowCount") & " documents match the
query<BR><BR>"
Response.Write "<TABLE BORDER=1>"
For I = 0 To objRS.Fields.Count - 1
Response.Write "<TH><STRONG>" & objRS (I).Name & "</STRONG></TH>"
Next
Do While Not objRS.EOF
Response.Write "<TR>"
For I = 0 To objRS.Fields.Count - 1
Response.Write "<TD>" & objRS (I) & "</TD>"
Next

Response.Write "</TR>"
objRS.MoveNext
Loop
Response.Write "</TABLE>"
objRS.Close
Set objRS = Nothing
Set objQuery = Nothing
%>
  #2  
Old July 19th, 2005, 11:39 AM
Hilary Cotter
Guest
 
Posts: n/a
Default Re: Index Server & Site Server + PDFs

why not try

objQuery.Query = "@filename jerkstore.pdf"


"Dave Karmens" <dk_now_48@HOTMAIL.COM> wrote in message
news:OuuqBbo6DHA.1592@TK2MSFTNGP10.phx.gbl...[color=blue]
> I fire the following code on Index Server (different obj) and it returns
> a PDFs no problem, but when I change the object to use the MSSearch for
> Site Server I don't get any PDFs. Anything in the code that would cause
> this? I can see the PDFs getting crawled in Site Server, but when I try
> and search I don't get any pdfs. :<
>
>
>
>
> <%
> Set objQuery = Server.CreateObject ("MSSearch.Query")
> objQuery.Catalog = "test"
> objQuery.Query = "jerkstore.pdf"
> objQuery.Columns = "Title, DocAddress, Description, Rank"
> objQuery.SortBy = "Rank[d], Title"
> objQuery.MaxRecords = 100
> Set objRS = objQuery.CreateRecordset ("sequential")
> Response.Write objRS.Properties ("RowCount") & " documents match the
> query<BR><BR>"
> Response.Write "<TABLE BORDER=1>"
> For I = 0 To objRS.Fields.Count - 1
> Response.Write "<TH><STRONG>" & objRS (I).Name & "</STRONG></TH>"
> Next
> Do While Not objRS.EOF
> Response.Write "<TR>"
> For I = 0 To objRS.Fields.Count - 1
> Response.Write "<TD>" & objRS (I) & "</TD>"
> Next
>
> Response.Write "</TR>"
> objRS.MoveNext
> Loop
> Response.Write "</TABLE>"
> objRS.Close
> Set objRS = Nothing
> Set objQuery = Nothing
> %>[/color]


  #3  
Old July 19th, 2005, 11:39 AM
Dave Karmens
Guest
 
Posts: n/a
Default Re: Index Server & Site Server + PDFs

OK, I changed it to:

objQuery.Query = "@filename service"

And I get several PDFs, but when I remove the @filename I get 0 PDFs.

Hilary Cotter wrote:
[color=blue]
> why not try
>
> objQuery.Query = "@filename jerkstore.pdf"
>
>
> "Dave Karmens" <dk_now_48@HOTMAIL.COM> wrote in message
> news:OuuqBbo6DHA.1592@TK2MSFTNGP10.phx.gbl...
>[color=green]
>>I fire the following code on Index Server (different obj) and it returns
>>a PDFs no problem, but when I change the object to use the MSSearch for
>>Site Server I don't get any PDFs. Anything in the code that would cause
>>this? I can see the PDFs getting crawled in Site Server, but when I try
>>and search I don't get any pdfs. :<
>>
>>
>>
>>
>><%
>>Set objQuery = Server.CreateObject ("MSSearch.Query")
>>objQuery.Catalog = "test"
>>objQuery.Query = "jerkstore.pdf"
>>objQuery.Columns = "Title, DocAddress, Description, Rank"
>>objQuery.SortBy = "Rank[d], Title"
>>objQuery.MaxRecords = 100
>>Set objRS = objQuery.CreateRecordset ("sequential")
>>Response.Write objRS.Properties ("RowCount") & " documents match the
>>query<BR><BR>"
>>Response.Write "<TABLE BORDER=1>"
>>For I = 0 To objRS.Fields.Count - 1
>>Response.Write "<TH><STRONG>" & objRS (I).Name & "</STRONG></TH>"
>>Next
>>Do While Not objRS.EOF
>> Response.Write "<TR>"
>> For I = 0 To objRS.Fields.Count - 1
>>Response.Write "<TD>" & objRS (I) & "</TD>"
>> Next
>>
>> Response.Write "</TR>"
>> objRS.MoveNext
>>Loop
>>Response.Write "</TABLE>"
>>objRS.Close
>>Set objRS = Nothing
>>Set objQuery = Nothing
>>%>[/color]
>
>
>[/color]
  #4  
Old July 19th, 2005, 11:39 AM
just1coder@yahoo.ca
Guest
 
Posts: n/a
Default Re: Index Server & Site Server + PDFs

That is only returning PDFs with the filename that match the query...

Hilary Cotter wrote:
[color=blue]
> why not try
>
> objQuery.Query = "@filename jerkstore.pdf"
>
>
> "Dave Karmens" <dk_now_48@HOTMAIL.COM> wrote in message
> news:OuuqBbo6DHA.1592@TK2MSFTNGP10.phx.gbl...
>[color=green]
>>I fire the following code on Index Server (different obj) and it returns
>>a PDFs no problem, but when I change the object to use the MSSearch for
>>Site Server I don't get any PDFs. Anything in the code that would cause
>>this? I can see the PDFs getting crawled in Site Server, but when I try
>>and search I don't get any pdfs. :<
>>
>>
>>
>>
>><%
>>Set objQuery = Server.CreateObject ("MSSearch.Query")
>>objQuery.Catalog = "test"
>>objQuery.Query = "jerkstore.pdf"
>>objQuery.Columns = "Title, DocAddress, Description, Rank"
>>objQuery.SortBy = "Rank[d], Title"
>>objQuery.MaxRecords = 100
>>Set objRS = objQuery.CreateRecordset ("sequential")
>>Response.Write objRS.Properties ("RowCount") & " documents match the
>>query<BR><BR>"
>>Response.Write "<TABLE BORDER=1>"
>>For I = 0 To objRS.Fields.Count - 1
>>Response.Write "<TH><STRONG>" & objRS (I).Name & "</STRONG></TH>"
>>Next
>>Do While Not objRS.EOF
>> Response.Write "<TR>"
>> For I = 0 To objRS.Fields.Count - 1
>>Response.Write "<TD>" & objRS (I) & "</TD>"
>> Next
>>
>> Response.Write "</TR>"
>> objRS.MoveNext
>>Loop
>>Response.Write "</TABLE>"
>>objRS.Close
>>Set objRS = Nothing
>>Set objQuery = Nothing
>>%>[/color]
>
>
>[/color]
  #5  
Old July 19th, 2005, 11:39 AM
Jtyc
Guest
 
Posts: n/a
Default Re: Index Server & Site Server + PDFs

> I fire the following code on Index Server (different obj) and it returns[color=blue]
> a PDFs no problem, but when I change the object to use the MSSearch for
> Site Server I don't get any PDFs. Anything in the code that would cause
> this? I can see the PDFs getting crawled in Site Server, but when I try
> and search I don't get any pdfs. :<[/color]

Do you have the iFilter installed for PDFs?



  #6  
Old July 19th, 2005, 11:39 AM
Dave Karmens
Guest
 
Posts: n/a
Default Re: Index Server & Site Server + PDFs

Yup.

Jtyc wrote:
[color=blue][color=green]
>>I fire the following code on Index Server (different obj) and it returns
>>a PDFs no problem, but when I change the object to use the MSSearch for
>>Site Server I don't get any PDFs. Anything in the code that would cause
>>this? I can see the PDFs getting crawled in Site Server, but when I try
>>and search I don't get any pdfs. :<[/color]
>
>
> Do you have the iFilter installed for PDFs?
>
>
>[/color]
  #7  
Old July 19th, 2005, 11:39 AM
Dave Karmens
Guest
 
Posts: n/a
Default Re: Index Server & Site Server + PDFs

Yup.

Jtyc wrote:
[color=blue][color=green]
>>I fire the following code on Index Server (different obj) and it returns
>>a PDFs no problem, but when I change the object to use the MSSearch for
>>Site Server I don't get any PDFs. Anything in the code that would cause
>>this? I can see the PDFs getting crawled in Site Server, but when I try
>>and search I don't get any pdfs. :<[/color]
>
>
> Do you have the iFilter installed for PDFs?
>
>
>[/color]
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles