Reputation: 2473
I have a requirement where a user can type in a keyword and the search should look at 4 columns to match against (name, city, state, zip) and return the search results. I'm wondering if I should use a LIKE clause, Free Text Search, Lucene .net, etc. also, I am using sql server.
Pros/Cons?
Any suggestions would be greatly appreciated.
Upvotes: 1
Views: 167
Reputation: 1595
Like clause would be slow for lots of rows, but should be ok for 1k rows/year (then, in 10 years you'll probably want to optimize it).
Upvotes: 1