Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 13th, 2004, 05:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Customize Search Results

Hello,

I have a search web form that search for the results in a SQL Server database. What I want to do is when I search, the results would look like (say the search is for "database"):

... this is what you need to do with a database that is the size of the state of Idaho... the whole database doesn't seem to be in third normal form...

Similar to how you see other search engines retrieve an abstract based on your search results. I only want to keep so many words to the left and right of the searched word(s). Is it possible to alter an ADO.NET DataSet's values to do this, and more importantly, is it realistic, or would there be many performance issues?

Thanks,

Brian Mains
__________________
Brian
  #2 (permalink)  
Old January 13th, 2004, 05:21 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I don't think you'll have much luck with built in methods to achieve this, but it won't be that hard to write what you need. Whatever you are using to output the data will need to handle the stripping of the text around the search term.

Logically, we can assume there will be some performance hit because you'll be running more code to strip down the result, but it should be negligable.

How are you planningon displaying the results? DataGrid/DataList?

Peter
------------------------------------------------------
Work smarter, not harder.
  #3 (permalink)  
Old January 14th, 2004, 08:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I planned on a data grid control for the results, in most (if not all) of the situations.

Thanks.
  #4 (permalink)  
Old January 14th, 2004, 09:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Have you optimized your sql server for searching?

http://www.sql-server-performance.co...timization.asp


  #5 (permalink)  
Old January 15th, 2004, 08:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yeah, I had tried to use full-text indexing to work in the past on my tables; however, I couldn't get it to work! The DBA had set it up on my tables, and I tried to query the full text index, but it wouldn't work...
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter double search results ABplace Beginning VB 6 3 June 28th, 2007 08:11 AM
How do I display search results... aspiretech9 PHP How-To 1 April 26th, 2005 10:12 AM
How do I display search results... aspiretech9 Beginning PHP 1 April 25th, 2005 04:59 PM
How do I display search results... aspiretech9 PHP Databases 1 April 25th, 2005 12:11 PM
How display search results ? URGENT arulkumar Classic ASP Databases 2 March 4th, 2005 10:26 AM



All times are GMT -4. The time now is 10:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.