Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2004, 05:12 PM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old January 13th, 2004, 05:21 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
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.
 
Old January 14th, 2004, 08:56 AM
Friend of Wrox
 
Join Date: Jun 2003
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.
 
Old January 14th, 2004, 09:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
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


 
Old January 15th, 2004, 08:51 AM
Friend of Wrox
 
Join Date: Jun 2003
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...





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





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