searching site members / users by address

Permalink
Am I missing something obvious? I've added an address attribute to the user attributes and checked the "Content included in user keyword search." box but when I search for a county or city or anything from an address on the member search page I get no results.

Any insights would be highly appreciated!

rosie607
 
enlil replied on at Permalink Reply
enlil
Try going to dashboard > system & settings > automated jobs. Run the generate sitemap and index search engine jobs, to update your search info. The search should work now!! Keep in mind this needs to be done on a regular basis to keep info on your site up to date with search engines ;) JohntheFish's Flex Job Scheduler add-on is a great choice to automate this process in the future!!
rosie607 replied on at Permalink Reply
rosie607
Hi thanks for the reply, I think that this would work for the regular site search but it doesn't seem to help for searching the site members.
I'm trying to search for members in a particular county on the members page (as set on the address user attribute in their profile)
eg.

sitename.com/concrete5.6.1.2/index.php?cID=120&keywords=Norfolk&submit=Search
enlil replied on at Permalink Reply
enlil
I've gone ahead as a test and added an "address" user attribute, and for MY account added the address 123 that one street. All my automated jobs are updated and I'm able to visit the members page and search for "that one street" and the results bring up a link to MY page ;) Play around with it for a bit, I think you will get it to work !!

edit: I do notice though, that if i search "123", or "that one street" i get the results I'm looking for but if i search "123 street" no results are returned...
rosie607 replied on at Permalink Reply
rosie607
Thanks for your help, it's a bit of an enigma, I've tried filling out the address on some other users and it's working, for some reason it's just not working on one particular member (is active) . . .
rosie607 replied on at Permalink Reply
rosie607
I'm baffled, I have 6 users, all the same, all with the same address but only 2 show up when I search the city name . .
mhawke replied on at Permalink Reply
mhawke
I can't duplicate this either. Do you clear your concrete5 cache after you add information? Could be the page is cached. I have al caching off in C5 and all my browsers while developing or making any changes.
rosie607 replied on at Permalink Reply
rosie607
I've switched off caching and cleared the cache, I deleted all my users and have re added them, I've set all users to have the same address and now none are showing up in the results.
enlil replied on at Permalink Reply
enlil
clear your cache again now. should make them visible!

edit: If not, try clearing your browser cache as well!!
rosie607 replied on at Permalink Reply
rosie607
I did clear both, no luck
enlil replied on at Permalink Reply
enlil
after deleting and re-creating your users did you re-run the index search engine job ??
mhawke replied on at Permalink Reply
mhawke
Is there a public URL we could have a look at?
rosie607 replied on at Permalink Reply
rosie607
I'll just upload to a live server . . .
rosie607 replied on at Permalink Reply
rosie607
Here you go
U: admin
P: P455w07d
http://dev.derbymugshot.com/index.php?cID=120...
enlil replied on at Permalink Reply
enlil
I just did some more testing and as soon as i add the same info to another user I'm able to see them in relevant search results. I also have my cache turned off as mhawke indicates. Clearing your cache should in fact make the other users visible in the results.
rosie607 replied on at Permalink Reply
rosie607
Here you go
U: admin
P: P455w07d
http://dev.derbymugshot.com/index.php?cID=120...
enlil replied on at Permalink Reply
enlil
not giving me access... You may not want to post that here either to avoid anybody and everybody being able to log into it. rather send it in a Private message!!
rosie607 replied on at Permalink Reply
rosie607
It's just a test install so I'll remove the whole thing once I get this issue sorted :-)
mhawke replied on at Permalink Reply
mhawke
Here's a thought...

You created an attribute called address but you didn't use the actual 'Address' attribute type that's available from the drop-down. You created a text area attribute instead. I'm wondering if 'address' is a reserve word that fools C5 into looking for content in the wrong place.
enlil replied on at Permalink Reply
enlil
thats me poking around mhawke!! @rosie - ok, it looks like C5 doesn't index content from the address attribute type. As you can see I added a text area address user attribute to your site and simply typed out an address and country. all is well finding this text through search!!
enlil replied on at Permalink Reply
enlil
the address attribute is being used for the address rosie had set up, but for some reason the search is not indexing any of the info!!
mhawke replied on at Permalink Reply
mhawke
I added a real address attribute and it returns search results just fine.

I'll report the bug.
rosie607 replied on at Permalink Reply
rosie607
I added a new user and entered "The Moon" for the city on your 'real address' field, search isn't returning results . . .
rosie607 replied on at Permalink Reply
rosie607
It does seem to work some of the time . . to some users, eg search "Sheringham" the location address attribute, returns results
mhawke replied on at Permalink Reply
mhawke
In a conflict like this, I'm not sure you can control which attribute get's returned. It might vary each time the search is run. Delete the text area 'address' and add a real address block and I'm sure things will work.
rosie607 replied on at Permalink Reply
rosie607
I was originally using a 'real address' for attribute 'location'. Enlil just added the address text field as he was testing.
enlil replied on at Permalink Reply
enlil
the "sheringham" thing is interesting. Log in as another user and see if they can get results of themselves by searching their own info...

edit: never mind, i guess I can do that too :D
rosie607 replied on at Permalink Reply
rosie607
I logged in as test6, who has "The Moon" address, searched "The Moon" and no results
rosie607 replied on at Permalink Reply
rosie607
even odder, test4
so we have 2 real address attributes 'location' and 'real address'
On test 4 I set one to 'Goat' and one to 'Rabbit', Searching Rabbit returns results Goat doesn't
enlil replied on at Permalink Reply
enlil
test this along with me, correct me if i'm wrong, but it seems like if you don't "require" an "address" attribute it can be found in search, but if it is "required" (on profile for instance) i cant seem to get the content in results...
rosie607 replied on at Permalink Reply
rosie607
I'm not sure about that, the address attribute that mhawke added is required and it's returning results for some users and not others . . .
enlil replied on at Permalink Reply
enlil
yes, i'm seeing that now. This is very weird!
enlil replied on at Permalink Reply
enlil
I'm beginning to think this is a problem with the core code. I'm able to add other attributes (text, text area, select...) and they are all easily searchable :|
rosie607 replied on at Permalink Reply
rosie607
hmmmm, right, I'll delete this test install and install a completely fresh C5 and try again from there
evgen replied on at Permalink Reply
evgen
Hi! So did anybody succeed with searching, users by country?
evgen replied on at Permalink Reply
evgen
Hi! So did anybody succeed with searching, users by country?