-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solr search #1882
base: master
Are you sure you want to change the base?
Solr search #1882
Conversation
* modified plugin to work with new configuration for solr
… into solr_search
* searching for group and user fixed (removed subtype) * displaying correct information fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one part (the last one) that might actually be a bug... one of the things is not like the others.
mod/elgg_solr/lib/functions.php
Outdated
@@ -514,9 +514,9 @@ function elgg_solr_get_default_fq($params) { | |||
$fq['access'] = $access_query; | |||
} | |||
|
|||
if (!access_get_show_hidden_status()) { | |||
/*if (!access_get_show_hidden_status()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete instead?
@@ -36,9 +36,11 @@ function elgg_solr_init() { | |||
elgg_register_plugin_hook_handler('search', 'object', 'elgg_solr_object_search'); | |||
elgg_register_plugin_hook_handler('search', 'user', 'elgg_solr_user_search'); | |||
elgg_register_plugin_hook_handler('search', 'group', 'elgg_solr_group_search'); | |||
elgg_register_plugin_hook_handler('search', 'tags', 'elgg_solr_tag_search'); | |||
//elgg_register_plugin_hook_handler('search', 'tags', 'elgg_solr_tag_search'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may need that later (i'm not sure) it just searches for tags
mod/elgg_solr/lib/hooks.php
Outdated
@@ -11,10 +11,12 @@ | |||
*/ | |||
function elgg_solr_file_search($hook, $type, $value, $params) { | |||
|
|||
$set_language = get_language(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing wrong, just sounds weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$set_language
has been set to $get_language
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly, no problem with the logic or anything just reads a little weird. One might expect set_ and get_ language to both be functions at a quick glance. Up to you if you want to do anything with that.
mod/elgg_solr/lib/hooks.php
Outdated
// get highlighting component and apply settings | ||
$hl = $query->getHighlighting(); | ||
$hlfields = array('name', 'username', 'description'); | ||
$hlfields = array('text_en'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only 'en' here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to $hlfields = array("text_{$get_language}");
This is completely unrelated to / does not affect the connex side and is only for the collab-related solr agent right? |
This PR is related to the issue in the GCcollab repository.
gctools-outilsgc/gccollab#336
The following files have been changed:
composer install
Additional Information
composer install