By Ivaylo Valkov on Thursday, 29 November 2018
Posted in General Issues
Replies 14
Likes 0
Views 561
Votes 0
Hi there is an existing search plugin for EasySocial? I see that there in EasyBlog and EasyDiscuss.
Hi Ivaylo,

EasySocial has several smart search plugins available out of the box(http://take.ms/XBTK5).
·
Thursday, 29 November 2018 16:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, for these plugins I know. I started the development of a search plugin based on them once it gets ready to share it with the community. I use a search component that unfortunately does not support these plugins.
·
Saturday, 01 December 2018 11:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, having a search plugin will not really work unless you are planning on performing simple searches like searching for a person's name etc.

When you start to perform a more complex search like searching for photos, albums, groups, custom fields, these are going to have a huge performance impact and this is why we resort into using the Smart Search feature in Joomla.
·
Saturday, 01 December 2018 14:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes you are totally right. I just want to show a name and a cover, and that's it. I almost wrote it. It took me only two days.
·
Saturday, 01 December 2018 15:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi how can I apply privacy to this code?

public function getAlbums($text, $order, $limit) {
$section = JText::_( "Album" );
$db = JFactory::getDbo();
$words = explode( ' ', $text );
$wheres = array();
foreach ($words as $word) {
$word = $db->Quote( '%'.$db->escape( $word, true ).'%', false );
$wheres2 = array();
$wheres2[] = 'LOWER(a.title) LIKE '.$word;
$wheres[] = implode( ' OR ', $wheres2 );
}
$where = '(' . implode( ($phrase == 'all' ? ') AND (' : ') OR ('), $wheres ) . ')';
$sql = is_a($sql, 'JDatabaseQuery') ? $sql : $db->getQuery(true);
$sql->select( 'a.created AS created, a.id AS id, b.value AS privacy');
$sql->select($sql->concatenate(array($db->Quote($section), 'a.title'), ": ").' AS title');
$sql->select('a.id AS ordering');
$sql->select('"2" AS browsernav');
$sql->from('#__social_albums AS a');
$sql->join('LEFT', '#__social_privacy_items AS b ON a.id = b.uid and b.type = ' . $db->Quote( 'albums' ) );
$sql->where( 'a.core = 0');
$sql->where($wheres);
$db->setQuery($sql, 0, $limit);
$result = $db->loadObjectList();
foreach($result as $row) {
$album = FD::table( 'Album' );
$album->load( $row->id );
$link = $album->getPermalink();
$img = $album->getCover();
$row->href = $link;
$row->image = $img;
}
return $result;
}
·
Sunday, 02 December 2018 22:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Our support does not cover customization queries. However, I would strongly recommend that you take a look at the existing codes from /administrator/components/com_easysocial/models/search.php under the method "buildAndConditionTable" and search for privacy
·
Monday, 03 December 2018 16:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello. Finder keep a lot of space in DB.
there is no way to use simple Search? Only Smart Search? Thanks.
·
Thursday, 14 February 2019 04:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Dimitry,

It depends on what you are trying to search.

EasySocial only provides 2 methods of searching, smart search(finder) and advanced search(based on custom fields).
·
Thursday, 14 February 2019 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello.
St the moment I use finder for videos, albums and groups.

What will be happen if I’ll delete indexed contentment in smart search (in backend)?

Users will not able to find anything in in “ES search” menu item? So search will not work?

Or Ajax search will not work only in “ES search module”? But common ES search will work?

Thanks.
·
Friday, 15 February 2019 12:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Dimitry,
What will be happen if I’ll delete indexed contentment in smart search (in backend)?
You are referring to 'clear index' correct(https://take.ms/xoTQ9)? If that's the case, then it means you are deleting all finder search results.

You can click on the 'index' button to index back all latest search results.
Users will not able to find anything in in “ES search” menu item? So search will not work?
If you are referring to the 'basic search' menu item, then yes deleting all smart search indexes will affect the search results under this menu item because this search uses smart search.
Or Ajax search will not work only in “ES search module”? But common ES search will work?
I'm not sure what you mean by 'common ES search'. There is only smart search and advanced search in ES.
·
Friday, 15 February 2019 13:13
·
0 Likes
·
0 Votes
·
0 Comments
·
I've written a plugin that works well with the previous version. Are there any changes to the search code. If no changes, can I can share it?
·
Saturday, 16 February 2019 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
I see it works well with the new version, I share it.
·
Saturday, 16 February 2019 11:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ivaylo,

Thanks for sharing.
·
Saturday, 16 February 2019 12:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post