By JH on Friday, 20 June 2014
Replies 16
Likes 0
Views 847
Votes 0
Hi guys,

I'd like to set up a cron job to automatically re-index smart search. Otherwise the search doesn't keep up with the amount of content that's being added by users.

What do you recommend: CLI cron, cPanel cron or pseudo-cron Joomla extension? Any input greatly appreciated.

Best wishes,

James
Hello JH,

Sorry for late reply to this,
Unfortunately that was not possible to do this, because the smart search indexing is not within EasySocial, that was under from com_finder (Joomla) itself.
May i know which content added by your user in Easysocial?
·
Friday, 20 June 2014 12:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex. Yes, I understand that EasySocial uses the Joomla Smart Search function.

Here's my problem: at the moment I can only find users who registered before I indexed Smart Search. When a new user registers, their info (username, profile details, etc) needs to be indexed so that they show up in a search. I don't want to manually re-index every day (or every hour) so I figured a cron job through cPanel or a pseudo-cron with an extension like JPrc Cronjobs might work.

What do you think?

James
JH
·
Friday, 20 June 2014 12:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello James,

I am really sorry for the delay of this reply as it is a weekend for us here. Hm, I am actually a little lost here because the indexer would automatically kick in upon creating a new user on the site. Our scripts will automatically tell the finder to index these new items as long as the plugin is enabled.
·
Saturday, 21 June 2014 14:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your reply. Here's an example of what I mean (see attached screenshot). There's a user who is clearly registered and active on the site BUT doesn't show up in the search. His name must not be in the Smart Search index. How? The Smart Search plugin is activated.

I could run the indexer and it would solve it... but I'd like to automate the process.

Thank you,

James
JH
·
Saturday, 21 June 2014 15:22
·
0 Likes
·
0 Votes
·
0 Comments
·
This happens on my site too, so I'm subscribing.
·
Saturday, 21 June 2014 15:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello James,

Hm, when a new user registers on your site, he / she will be indexed automatically (as what I can see from the code here).
·
Saturday, 21 June 2014 15:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, no improvement on this. Search results still do not include newly registered members. Not sure why. But wouldn't a Smart Search index cron job do the trick? (Say, re-index every 30 minutes or so.) Is there any reason why that wouldn't work?

Thanks,

James
JH
·
Sunday, 22 June 2014 10:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello James,

No cronjob is necessary to index items actually. As soon as the user registers on your site, they will be indexed automatically because our scripts will execute the indexing. Can you please provide us with the back end and FTP access to the site to check on this?
·
Sunday, 22 June 2014 13:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure thing, Mark. Please see below. Please note: I do not want Smart Search to index my entire site, just the EasySocial section. For this reason I've turned off some of the serach plugins. I wonder if this is the problem. Anyhow, if you could take a quick look I'd really appreciated it.

Thank you,

James
JH
·
Sunday, 22 June 2014 22:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello James,

The site is too slow for me to run any testings Every single page load takes about 40s - 60s even on the login page at the back end. I think something is not right with your server currently?
·
Monday, 23 June 2014 01:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry about that. Yes, we're having issues with the current host and will be changing hosts tomorrow morning. I'll update you asap.

Thank you!

James
JH
·
Monday, 23 June 2014 01:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks James, let me know when you are ready
·
Monday, 23 June 2014 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, please try again now.

Thanks,

James
JH
·
Monday, 23 June 2014 08:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello JH,

Sorry for late reply to this,
Can you try download my attachment file below and replace in your file
JoomlaFolder\administrator\components\com_easysocial\includes\user\user.php
and see how it goes? Please advise.
·
Monday, 23 June 2014 16:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, I've installed the new file and now I'll manually re-index the search and keep an eye on whether new users are automatically added to the index. I'll update you.

Thank you!

James
JH
·
Monday, 23 June 2014 21:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello James,

Thanks for updating, let us know how this goes!
·
Monday, 23 June 2014 23:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post