简体   繁体   中英

asp.net mvc - searching

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.

Like子句对于很多行来说会很慢,但是对于每年一千行来说应该没问题(然后,在十年内,您可能需要对其进行优化)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM