473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
%>
Jul 19 '05 #1
6 2289
why not try

objQuery.Query = "@filename jerkstore.pdf"
"Dave Karmens" <dk*******@HOTMAIL.COM> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
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
%>

Jul 19 '05 #2
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:
why not try

objQuery.Query = "@filename jerkstore.pdf"
"Dave Karmens" <dk*******@HOTMAIL.COM> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
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
%>


Jul 19 '05 #3
That is only returning PDFs with the filename that match the query...

Hilary Cotter wrote:
why not try

objQuery.Query = "@filename jerkstore.pdf"
"Dave Karmens" <dk*******@HOTMAIL.COM> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
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
%>


Jul 19 '05 #4
> 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. :<


Do you have the iFilter installed for PDFs?

Jul 19 '05 #5
Yup.

Jtyc wrote:
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. :<

Do you have the iFilter installed for PDFs?

Jul 19 '05 #6
Yup.

Jtyc wrote:
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. :<

Do you have the iFilter installed for PDFs?

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lab309 | last post by:
The problem I'm trying to solve is as follows: The website has two subdirectories: /ordinary and /phpstuff. Users typing hostname/ordinary get the file index.htm by default, and this works fine. ...
25
by: John Morgan | last post by:
Though I have designed and implemented a number of large reasonably well received web sites I do not consider myself a graphics designer I am now for the first time going to work with a ...
2
by: P1ayboy | last post by:
Does anyone know of anyways to search or index pdf's using .net?
0
by: Brett Ossman | last post by:
Users are recently encountering problems loading PDFs from our web site. Two contributing factors seem to be an Acrobat upgrade to version 7.x and possibly larger PDFs (multiple MBs). Any...
1
by: strycat | last post by:
Hi, According to http://www.php.net/manual/en/faq.using.php#faq.using.freepdf you can use Panda to create PDFs with PHP. Does anyone know how to do this? I've tried installing Panda and...
26
by: Craig Morrison | last post by:
I'm getting this: PHP Notice: Undefined index: D1 in /var/www/html..... From this line of code: $id_option = $_POST; Which is posted by this:
2
by: Sergej | last post by:
Hi! Everything on my php&mysql site is with charset utf8, and now I've to create pdf from the site... Fpdf doesn't support utf8... I saw ufpdf but it seems a quite unstable and with bugs. ...
5
by: iaminsik | last post by:
I implemented a TRIE in memory by myself in C. But, as you know, when a size of data increases, loading time of data becomes longer. I want to implement a TRIE in file, which means division of...
4
by: mattehz | last post by:
Hey there, I am trying to upload old source files and came across these errors: Warning: Invalid argument supplied for foreach() in /home/mattehz/public_html/acssr/trunk/inc_html.php on line 59...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.