By Richard on Tuesday, 18 March 2014
Posted in General Issues
Replies 18
Likes 0
Views 593
Votes 0
Hi there,

I have some custom fields that I would like to be searchable from the ajax search as well as the default search box on the toolbar. Is it currently possible to include a field in the search without going to the advanced search and searching for that field specifically?
Hi Richard,

I am sorry for the delay of this reply.

Regarding the search on custom fields, I am sorry but currently the ajax search ( i believe this is from module ) and toolbar search are not support on custom fields search. The only place that you can perform a search on custom fields is in advanced search page ( profile search ).

For your information, in EasySocial 1.2, we will be using Joomla smart search ( finder plugins ) in toolbar search to search for the content in your EasySocial site

Hope this help and have a nice day
Sam
·
Tuesday, 18 March 2014 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Will the EasySocial finder/search plugin be able to be configured to search for those fields through the ajax and toolbar search, or is this only going to be an advanced search function only?
·
Tuesday, 18 March 2014 12:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

Sorry but not too sure if I understand you here but "fields searching" will only be available in the "Advanced Search" of EasySocial. The normal searches via the toolbar, does not search fields. It's not that we do not want to search it but it's a little complex when it comes to privacy
·
Tuesday, 18 March 2014 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Is there anyway I can modify a certain php file to allow the search to search a field with a unique key?

If it's something you don't want to add as an out of the box option, I'm ok with making modifications to allow it to my own site.
·
Tuesday, 18 March 2014 13:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

It's not a simple modification but if you want to customize it, you should look at the finder plugin in /plugins/finder/easysocialusers/ . You need to take note that the way Joomla's finder works, is to index the content prior to the search. So I am not really sure how could this work.
·
Tuesday, 18 March 2014 17:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I'm currently using EasySocial 1.2 RC4, and I don't see the plugin you mentioned - is it part of RC5?

The custom fields and the data users enter for those custom fields will play a large part in how the social aspect of the site I'm creating will work, so I'm really hoping there's a way to allow those fields to be searched via the toolbar/ajax.

Say for example I created a custom field called "Favorite Sport" and the user said "Hockey" was their favorite sport during registration - using the toolbar to search for "hockey" should bring up those users that listed hockey as their favorite sport. I realize a group could be created for such an example, I only used it for arguments sake.

Even if it's not available as an option now, I hope its a consideration to expand the search options to include custom fields in the toolbar/ajax rather than just the advanced search.
·
Tuesday, 18 March 2014 18:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Any other insights into this?
·
Wednesday, 19 March 2014 03:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

I am sorry for the delay of this reply.

Thanks for your suggestion on the custom fields in toolbar / ajax search. We will see what we can do about this one in the future

As for the new finder plugins, these plugins only come with RC5 release. You might want to upgrade your RC4 to this latest RC5.
Please see http://stackideas.com/issues/2147

Hope this help and have a nice day
Sam
·
Wednesday, 19 March 2014 11:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello support,

Previously mentioned in this thread, there was a suggestion to modify the finder easysocial plugin. I've just upgraded to 1.2.1 and had a look at the plugin.

// get data from customfields
// get customfields.


There's a whole section for custom fields that's been commented out. Is this in anyway related to allowing custom fields to be indexed and searched?
·
Thursday, 20 March 2014 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

We actually still experimenting the finder plugin to index user custom fields thus we haven't release the code yet. Still have some performance issue. If you have only one seachable field, you may uncomment the block of code and try to index your users. Let us know if the index process run ok or not.

Hope this help and have a nice day
Sam
·
Thursday, 20 March 2014 13:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

I've uncommented the block of code and now the search indexer just hangs at "Indexer Running - Your content is being indexed. Do not close this window."

Is there anything extra I needed to add to that block of code for it to pull data from the custom fields (ie specify which field I'd like searchable)?

Thanks.
·
Thursday, 20 March 2014 13:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

Look like the block of code will have performance issue when dealing with large users. Can you pass me your site admin access and your ftp account and i will try to customise the user finder plugin to include one custom fields to be indexed. Also, please tell me which custom field you want the indexer to index the content.

Thanks.
Sam
·
Thursday, 20 March 2014 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam, there's only 10 users on the site so far, and they're only users I've created for testing purposes (site isn't live). I also only have 4 extra fields, 2 dropdowns, 2 text fields.

Do you still want the backend/ftp info?
·
Thursday, 20 March 2014 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

Ah yes, i will need your backend access and ftp account so that I can apply some code into your user finder plugin. Also, I will need to know which field you want the indexer to index the content because the code that I am going to apply require the field 'unique_key' so that I can get the value from that particular field.

Hope this help and have a nice day
Sam
·
Thursday, 20 March 2014 19:06
·
0 Likes
·
0 Votes
·
0 Comments
·
I've attached the site details in this post.
·
Thursday, 20 March 2014 19:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

Thanks for the site access details.

I've added below code at file 'JOOMLA/plugins/finder/easysocialusers/easysocialusers.php' at line '190':


$fValue = $user->getFieldValue( 'CAT_NAME_1', '');
if ($fValue) {
$contentSnapshot[] = $fValue;
}


I then go to your Joomla smart search and purge all the existing data and re-run the index process. It seems like the indexer now able to complete the process and indexed your cat name as well
Please verify again

Hope this help and have a nice day
Sam
·
Thursday, 20 March 2014 19:39
·
0 Likes
·
0 Votes
·
0 Comments
·
It does work, but only if you type in the exact name - is there a way to allow suggestions on a partial name?

(just to double check, so I'm uninstalling the right things ... you installed MijoSQL and OSE FileMan?)
·
Thursday, 20 March 2014 19:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

It does work, but only if you type in the exact name - is there a way to allow suggestions on a partial name?


I am sorry but the search actually performed by Joomla smart search thus partial keyword search is not supported.

(just to double check, so I'm uninstalling the right things ... you installed MijoSQL and OSE FileMan?)


Ah yes, you may uninstall these two components from your site. My bad for not informing you about this

Hope this help and have a nice day.
Sam
·
Thursday, 20 March 2014 20:08
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post