Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Search.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Search.

 Post Reply Post Reply
Author
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Topic: Search.
    Posted: 17 October 2005 at 11:05pm
I'm working on an ASP.NET 2.0 program. All my data is contained in a SQL database. It nicely displays the results in a GridView, but now I want to work on not only filtering those results but also sorting them. Is anyone aware of any 2.0 code that exemplifies how best to do this.
It should be pretty easy to create code that searches, just add something to my stored procedures select statement like:
select * from Game where Title LIKE varSearchTerm or Description LIKE varSearchTerm
But what about doing AND/OR searching, e.g.:
User enters: "Tag Dodgeball" (quotation marks indicating both terms together are required"
User enters: Tag AND Dodgeball (AND indicates both terms are required somewhere)
User enters: Tag OR Dodgeball (OR indicates only one term is required).
David.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2005 at 2:37am
Boolean searches are a bit hard to write youself, you might want to look into http://openlucene.net/
Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2005 at 11:33pm
Thanks Mart. The one difficulty with OpenLucene is it appears to be focused on indexing documents rather than database contents. I'll investigate it further when I have a chance though.
David.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.