473,383 Members | 1,929 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,383 software developers and data experts.

Problem with Index Server Query

Greetings,
I am having a difficult time trying to get my index server query to work.
Here's the code:

// create a connection object and command object, to connect the Index
Server

System.Data.OleDb.OleDbConnection odbSearch = new
System.Data.OleDb.OleDbConnection();

System.Data.OleDb.OleDbCommand cmdSearch = new
System.Data.OleDb.OleDbCommand();

//assign the connecting string to the oledb connection object

odbSearch.ConnectionString = string.Format("Provider=MSIDXS;Data
Source={0};","intranet");

//assign connection to command object cmdSearch

cmdSearch.Connection = odbSearch;

//Query to search a free text string in the catalog in the contents of the
indexed documents in the catalog
try

{

cmdSearch.CommandText = "select doctitle, filename, vpath, rank,
characterization "

+" from scope('DEEP TRAVERSAL OF \"/\")' "

+" where FREETEXT('"+txtSearch.Text +"') "

+" and filename <> 'search.aspx' order by rank desc ";
odbSearch.Open();

int cnt;

try

{

OleDbDataReader rdrSearch = cmdSearch.ExecuteReader();
//dg1.DataSource=rdrSearch;

//dg1.DataBind();

//cnt=1;

while( rdrSearch.Read())

{

//Response.Write("OK<br>");

System.Diagnostics.Debug.WriteLine(rdrSearch[0].ToString());

getpagelink(rdrSearch);

}

}

catch(Exception ex)

{

System.Diagnostics.Debug.WriteLine(ex.Message);

}

odbSearch.Close();

}

Does anyone have any ideas why this wont work?
Nov 18 '05 #1
2 1333
What do you mean by getting it to work? Code issues aside, have you indexed
your pages?

--
Peter O'Reilly
Nov 18 '05 #2
Background:
Yes they are indexed. The Catalog "INTRANET" is on the webserver's index
server and points to a shared folder on another server. When I test the page
to get results I get nothing. From the MMC->Query Form I get the listings
that I should be getting. I really don't want to wrap the ixsso to query the
index server being that EVERYONE seems to have gotten the query to work
using OLEDB.

"Peter O'Reilly" <Pe***********@timeinc.com!N!O!.S!P!AM!> wrote in message
news:uJ**************@TK2MSFTNGP11.phx.gbl...
What do you mean by getting it to work? Code issues aside, have you indexed your pages?

--
Peter O'Reilly

Nov 18 '05 #3

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

Similar topics

5
by: Jason | last post by:
The following stored procedure is taking too long (in my opinion). The problem seems to be the SUM line. When commented out the query takes a second or two. When included the response time climbs...
6
by: Anita | last post by:
I have just tested 3 queries using QA. The complete test information : ------ CREATE TABLE agls1 ( fyear char(4) NULL , fprefix char(3) NULL , fvcno char(20) NULL , fdate datetime NULL ,...
5
by: hishamfangs | last post by:
Hi guys! I'm facing a problem and I can't quite figure it out! I have created a table on SQL Server 2000 to store call records. We get about 250,000 calls a day, and the most frequently used...
1
by: Antar | last post by:
Hi, I'm kind of a newbie on DB management but I have to deal with a huge DB used for real time operations. I got a temporal table where current data is stored to work with frecuently, and then a...
7
by: Magnus Österberg | last post by:
I am experiencing the following problem; I boot my Windows 2000 sp#4 machine. I check sqlservr.exe's memory usage in Task manager. It is ca 20 mb, everything is OK. Then I run this query; ...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
4
by: wolfgang wagner | last post by:
hi all! after successfully integrating a dropdownlist in my datagrid i have another problem: i cannot set the selected index of the dropdownlistbox. here is my code: hardware.aspx...
20
by: Development - multi.art.studio | last post by:
Hello everyone, i just upgraded my old postgres-database from version 7.1 to 7.4.2. i dumped out my 7.1 database (with pg_dump from 7.1) as an sql-file with copy-commands and to one file using...
15
by: Együd Csaba | last post by:
Hi All, I've a problem with the perfprmance of the production environment. I've two db servers. One on my laptop computer (2Ghz, 1GB, WinXP, Cygwin, Postgres 7.3.4) and one on a production server...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.