Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More "Robust" searching?

Status
Not open for further replies.

gbaughma

IS-IT--Management
Staff member
Nov 21, 2003
4,772
US
I have a web store, and I'd like to have a more robust search engine.

The current query passes a search string, such as "books", and the query does something like "Select * from table where description LIKE '%@Searchstring%'"

What I would *REALLY* like to do is a much more robust search, something that would allow me to put in a search phrase like this:

books -rowling (To do search for books, but exclude rowling)

books OR novels (or some such syntax, to do a search for either)

... of course, the cat's meow would be able to do something like:

books OR novels -rowling (look for books OR novels, but exclude hits with rowling)

.... so, any thoughts on how to do a nice, robust search as part of a stored procedure, where the search phrase is pretty much all that is passed?



Just my 2¢

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg
 
Have you looked in to using full text search?

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
  • Thread starter
  • Moderator
  • #3
I must admit that I'm not very clear on the full text search concept... I know it's there, but I do not know how to implement it. I suppose I'll need to get a book...


Just my 2¢

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg
 
  • Thread starter
  • Moderator
  • #4
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top