Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The module depends onApache SOLR. It overrides some Apache SOLR configuration variables, calculating the number of results and the age of the content found.
This module provides css and overrides both search templates search-result.tpl.php and search-results.tpl.php. Users can override these templates and the css in their theme.
You can find the sandbox page of the module here
Git URL:- git clone --branch 7.x-1.x http://git.drupal.org/sandbox/probesys/2184225.git solr_google_like
Thanks for reviewing.
Comment | File | Size | Author |
---|---|---|---|
solr_google_like.png | 73.37 KB | probesys |
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
gobinathmCoding / Formatting Standards
The code is clean and I could see no issues in it.
Pareview.sh review seems to be clean : http://pareview.sh/pareview/httpgitdrupalorgsandboxjacobsanford2150745git
Concern :
hook_init() has been used in an incorrect way. as per the present code, this will get executed on any page generation which is unnecessary. You can probally restrict this to search page alone.
HELP Text.
Your project page is not very detailed, please have a look at the tips for a great project page, you may also use HTML-tags for better structure. Language in the text might need to be updated
Note: project with review bonus always get priority.
Comment #3
probesys CreditAttribution: probesys commentedWe have detailed the project page
We have limited the $conf definition and the adding of css in the hook_init at the search page as recommended :
Thanks for reviewing.
Comment #4
inders CreditAttribution: inders commentedAdded Git URL in project application.
Comment #5
inders CreditAttribution: inders commentedYou can keep the template file Clean by moving functions to module file:-
Would prefer not to call functions from tpl file. you can move this to function :- solr_google_like_preprocess_search_results().
Comment #6
probesys CreditAttribution: probesys commentedThe search_help function have been moved from the template to the solr_google_like_preprocess_search_results() hook.
Thanks for reviewing.
Comment #7
alinouman CreditAttribution: alinouman commentedThere is a bug in your code on module file at line 164 . you are trying to assign $result string but it wouldn't assign like that
$result . ' ...';
it should be like it
$result .= ' ...';
Comment #8
probesys CreditAttribution: probesys commentedRight...
set
$result .= ' ...';
Thanks for reviewing.
Comment #9
basvanderheijden CreditAttribution: basvanderheijden commentedI've looked at your module, and wondered why you decided to override the noresults theme implementation in
solr_google_like_theme_registry_alter
withtheme_solr_google_like_noresults
?This disables functionality of other modules implementing (the default theme implementation of)
theme_apachesolr_search_noresults()
.Comment #10
subhojit777Good module :)
Some suggestions :-
- We can set custom apachesolr pages. You should include them in hook_init().
- The time formatting should have a setting page. Admin should be able to define the time precision for eg: whether they want to show day or not
- For fomatting time better use format_date(), or try to build a wrapper function around format_date()
- It would be better if admin would be able to write custom no-results-message through UI
- It would be great if the link (shown in green) is clickable too (just like google search)
- I would suggest testing this module with custom theme, that is supposed to override
search-results
andsearch-result
templates. I see that you are altering theme registry in module. In some cases themers would want to make some changes in templates that is not provided by your module.Good work (y) - but your module is missing admin UI settings.
Also keep css file under css directory. Just for sake of best practices ;)
Comment #11
subhojit777The module defnintely needs admin UI settings
Comment #12
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.