Janae
02/06/2025, 9:00 PMSearchExpressionPattern
so theoretically this should all "just work"...
However, there's clearly an error in the documentation because there's an extra parenthesis in the middle of the statement, which is invalid. If I cut that out and try it like this it tells me no overload .AddSearchableProperty()
takes two parameters.
What I assume the documentation should look like but doesn't work:
collectionConfig.AddSearchableProperty(p => p.FirstName, SearchExpressionPattern.Contains);
Has anyone done this and knows the actual syntax for using SearchExpressionPattern.Contains
? Am I missing something obvious?
Example that doesn't work is in my screenshot
https://cdn.discordapp.com/attachments/1337165954131693609/1337165954366570547/image.png?ex=67a67456&is=67a522d6&hm=0fc0817ba08397907d9fa32f8476cadc86bc199b966c8dab6a205ff5402e29fa&Jemayn
02/07/2025, 8:26 AM.AddSearchableProperty(x => x.Name, SearchExpressionPattern.Contains)
And when stepping into the AddSearchableProperty
Rider tells me there are two versions of it:
Are you sure that it actually is added in 14.0.3? Could be a case of it only being in the latest 13 and latest 15 versions?
https://cdn.discordapp.com/attachments/1337165954131693609/1337338702573080596/image.png?ex=67a71539&is=67a5c3b9&hm=c7fe9cba70e9cff04ea277e869f5de97291ec131d4dea64e1df5736962b30d05&Janae
02/07/2025, 3:39 PMJanae
02/07/2025, 4:39 PMJanae
02/07/2025, 5:04 PM