c# - Searchstrings with Linq? -


hi,

i need let enduser type search strings :

volvo s70 or s60 > posts contins volvo or s70 or s60

volvo s70 not s60 > posts contains volvo , s70 not s60

"volvo s70" > posts includes "volvo s70" 1 string

volvo s* > posts contains volvo , word starting s

"volvo s70" "volvo s60" v* > posts contains "volvo s70" or "volvo s60" or word starting on v

vo*l* s* > * treated wildcards in case posts contains vo*l* or s*

this small part off possible combinations.

how handle linq object?

i know can use startswith, endswith, contains mean have split incoming search string, way? , how handle strings vo*l*?

bestregards

edit1: data have been fetched database entityframework, means data in application (list)

if want unleash full power of text search can use lucene.net . it's not easy set gives lot of power full text searches , indexing. can set work linqtoentities.

http://linqtolucene.codeplex.com/


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -