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!
Any insights would be highly appreciated!
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!!
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
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
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...
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...
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) . . .
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 . .
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.
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.
clear your cache again now. should make them visible!
edit: If not, try clearing your browser cache as well!!
edit: If not, try clearing your browser cache as well!!
I did clear both, no luck
after deleting and re-creating your users did you re-run the index search engine job ??
Is there a public URL we could have a look at?
I'll just upload to a live server . . .
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.
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!!
It's just a test install so I'll remove the whole thing once I get this issue sorted :-)
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.
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.
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!!
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!!
I added a real address attribute and it returns search results just fine.
I'll report the bug.
I'll report the bug.
I added a new user and entered "The Moon" for the city on your 'real address' field, search isn't returning results . . .
It does seem to work some of the time . . to some users, eg search "Sheringham" the location address attribute, returns results
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.
I was originally using a 'real address' for attribute 'location'. Enlil just added the address text field as he was testing.
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
edit: never mind, i guess I can do that too :D
I logged in as test6, who has "The Moon" address, searched "The Moon" and no results
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
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
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...
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 . . .
yes, i'm seeing that now. This is very weird!
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 :|
hmmmm, right, I'll delete this test install and install a completely fresh C5 and try again from there
Hi! So did anybody succeed with searching, users by country?
Hi! So did anybody succeed with searching, users by country?