Hi!
I have batch imported about 700 members (resellers actually) with some custom properties like phone number, city, postal code etc...
Now I would like to make a "Reseller Locator" aka a search form that lists "members" that has matching properties for City and/or Name and/or area code.
I looked at the source code for memberSearch from the umbDashboard nd noticed that the search is a straight SQL query to the DB, isn't there any methods that could be used to do this search instead?
My dream would be something like a SearchMembersByCustomProperties(string propertyalias, string propertyvalue) that uses a SQL "select like" but I guess I'll have to do this myself if no one already has...!?
I also noticed that in the member search there was checkbox that where labeled "Extended search (slow)", does that mean that it will be really slow to search among 700+ members for all members with the generic property "City" containing "%sto%"!?
In a custom DB I would do something like "SELECT Name, City, MapUrl FROM resellers where City LIKE @SearchTerm" And give @SearchTerm the value "%" + SearchTerm + "%"
Would the same thing be slow to perform in umbraco since I'm forced to do some Inner Joins etc!? or is the speed warning mentioned above only to indicate that the opisite is much faster??
// Kalle
" - Yeah I'd like to share your point of view, as long as it's my view too... (
http://www.d-a-d.dk/lyrics/pointofview)