Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Indexing Server with .Net

Indexing Server with .Net

Reply
  #1 (permalink)  
Old 02-04-04, 11:09 AM
rranly rranly is offline
New Member
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Indexing Server with .Net

I am trying to create search capabilities on a directory with 1000s of html files. How do I do this? Indexing Server? Are there any .Net classes available to assit me with this? I'm having a real hard time locating anything usefull on the web on how to do this. If Indexing Serivice is what I need, I'm having a hard time locating any samples using the .Net framework, or classic ASP for that matter. Every article I find on Microsoft's site starts in the middle of a process, and I'm unable to find anything useful. Any help would be apprieciated.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-12-04, 07:48 AM
tylee tylee is offline
New Member
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Indexing server

This site should help you write a page to search through your files in classic asp. I am also looking for any article or help with writing a page in asp.net. If you find any info on this I would appreciate if you replied to this post.

http://www.asp101.com/articles/john/...er/default.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 02-13-04, 08:49 AM
tylee tylee is offline
New Member
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Indexing Server In Asp.net

I ended up finding some code in c# for indexing server. It wasn't too difficult to convert it into vb as there isn't much code

These links should help you:

http://www.c-sharpcorner.com/Code/20...ndexServer.asp

http://www.codeproject.com/aspnet/search.asp

Here is an abstract from my code

Dim odbSearch As OleDbConnection = New OleDbConnection
Dim cmdSearch As OleDbCommand = New OleDbCommand
Dim cnt As Int64
Dim queryText As String
Dim rdrSearch As OleDbDataReader
Dim arrList As ArrayList = New ArrayList
Dim sql As String
Dim i As Int32

'assign the connecting string to the oledb connection object
odbSearch.ConnectionString = "Provider=MSIDXS.1;Data Source[catalogName]"

'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

queryText = " select doctitle, filename, vpath, path, rank, characterization "
queryText &= " from scope() where FREETEXT(Contents, '" + txtSearch.Text + "') and filename <> 'FileSearching.aspx' order by rank desc "

cmdSearch.CommandText = queryText
odbSearch.Open()

Try

rdrSearch = cmdSearch.ExecuteReader()

While rdrSearch.Read
'do whatever you want to do with the results here
arrList.Add(rdrSearch.Item("filename"))
End While

Catch ex As Exception

odbSearch.Close()

End Try

Catch ex As SqlException

'lbl.Text = ex.Message.ToString()
odbSearch.Close()

End Try

'Close the connection
odbSearch.Close()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free web site, control panel, and dedicated IP with game server purchase for only $25 twastudios General Advertisements 3 10-20-05 06:13 AM
KillerGameServers.com - low pings, rock solid network, KILLER support twastudios General Advertisements 0 12-01-03 11:51 AM
FREE Team Speak server w/ every purchase of a Call of Duty Server twastudios General Advertisements 0 10-31-03 01:14 AM
subdomain to another server. forcer The Lounge 3 07-30-03 01:45 PM


All times are GMT -5. The time now is 04:00 PM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.