Closed (cannot reproduce)
Project:
Project ApacheSolr integration
Version:
6.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2012 at 07:56 UTC
Updated:
2 Nov 2015 at 21:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
avpadernoIt seems to work, to me. When Sort by is set to Most installed, I get the following modules, in this exact order:
Comment #2
naught101 commentedkiamlaluno: Try again, but with something in the "search modules" field.
Comment #3
jonanthony commented#subscribe
as soon as you put some search text in you lose (or at least I do) the ability to sort by most installed. We have come to rely on this feature quite heavily to quickly establish which modules are most stable, have the longest histories, when looking for niche modules.
Comment #4
babbage commentedI likewise confirm that I have experienced this issue in the last 24 hours.
Steps to reproduce:
a) Type something into the search field (e.g., "links").
b) Click "Refine your search" and select "Modules".
c) Click "Search".
d) In the drop-down options, change "Sort by" to "Most installed". Page reloads, and now "Relevancy" is selected.
e) If any other criteria is selected for sort, the page reloads and that criteria is selected, with the sort apparently re-ordered as expected.
I initially experienced this problem in Safari on the iPhone, so thought it might be browser-specific, but have reproduced this on Safari and Firefox for Mac OS X.
Comment #5
drummComment #6
winchendonsprings commentedI can confirm this as well. Ubuntu -Firefox -Chrome -Chromium -Opera -Midori -Epiphany
Comment #7
silverwing commentedComment #8
mducharme commentedBumping up the priority. This is a must-have filter during the module selection process.
Comment #9
maniosullivan commentedBump, have noticed this happening for some time now. Initially thought it was specific to Safari, but I have since seen the same behaviour on all browsers.
Comment #10
webservant316 commentedconfirming that this is still a problem
Comment #11
smartinm commentedI've been researching this issue and found this:
In the function
project_solr_browse_projects_form_submit()the Solr sort field (iss_project_release_usage) is not added to the params before the redirect to result page occurs because is the default sort:However in the function
project_solr_browse_page()the validate sort parameter has two bugs and does not apply the default sort:Note:
1.
isset($sort)will always evaluate to true (becauseisset()function treat an empty string as true)2. If the user type something into the search field and select "most installed" sort the
$text_queryis not empty and the default sort is not applied (because was removed in the submit function).Simple patch:
Comment #12
relaxpor commentedConfirm the problem still arise.
Comment #13
zajak commentedI'm trying to drive adoption for Drupal at my university and this issue is causing some immediate questions about the quality of the framework "why should we use this framework when their own website doesn't even work right" is a response I'm getting This is STILL definitley an issue and DOES NOT work as designed.
When I search for "views" off of the home page (select modules) from the drop down radio, the default sort is by "relavancy". Top result is "Views Field View".
Sorting by "Most Installed" doesn't change anything. Still "Views Field View" is the top result. I expect to see the "Views" module as my top result. I literally have to tell people I'm training to use google to search for modules. Please Please Please fix this so I can help bring more people to this awesome framework.
Comment #14
smartinm commentedSearch modules on Drupal.org with this bug is a pain, but do not think that is critical.
I rerolled my patch from comment #11
Comment #15
drummThanks for providing a patch file.
I went ahead and committed this and deployed on staging. Please double check http://staging.devdrupal.org/, be sure to look for any unintended side effects. Also, please try out http://7.devdrupal.org/; the project_solr codebase has changed quite a bit for D7, and I think this was fixed there too.
Comment #16
resslx commentedPlease fix this! It's difficult searching for effective modules otherwise.
Comment #17
dwwPlease test this! ;) A fix has been deployed. We're asking for help testing. If this issue pisses you off, please contribute instead of just complaining.
Thanks,
-Derek
Comment #18
smartinm commentedI checked the patch on staging environment and works fine for me.
Searching "views" using sort by "Most intalled"...
- On drupal.org returns "Achievements Views" module as first result and Sort by field is changed [1].
- On staging.devdrupal.org returns "Views" module as first result and Sort by field is not changed [2].
[1] http://drupal.org/project/modules/views?f[0]=bs_project_sandbox%3A0
[2] http://staging.devdrupal.org/project/modules/views?f[0]=bs_project_sandb...
Comment #19
drummThis has been deployed.
Comment #20
jonanthony commentedI tested this with the phrase mail http://staging.devdrupal.org/project/modules/mail?f[0]=bs_project_sandbo... and results worked like a charm.
One thought is that the results are ordered by the number of downloads. In an ideal world popularity would be ordered by the number of reported installs IMHO as this lets me know how well the module actually works.
Anyway big thumbs up !! Great to see this back in action.
Comment #21
giorgosksince this was closed as duplicate #1953680: Search Sort By option doesnt work
I will post here
searching with
Search Modules: userpoints (or any other word)
Sort by: Relevancy
gives results with sort by: most installed
I always use this kind of search and this was not the case 24hours ago
Comment #22
smartinm commentedThe Sort By "Relevancy" (score) now does not work because
getSolrsortUrlQuery()function on apachesolr.module removes the parameter of the URL.The attached patch adds explicitly the "solrsort" parameter to the URL (even if it is the default).
Comment #23
drummI went ahead and committed this and it is on http://staging.devdrupal.org/ for testing. Please test this, and other sorting-related behavior.
Also, please test everything on http://git7site.devdrupal.org/. The D7 code has diverged quite a bit, and I think these problems are already solved, but more testing is always nice.
smartinm & anyone else interested – we have dev sites with read-only Solr access, so any future patches can be tried out with real data and configuration, see http://drupal.org/node/1018084.
Comment #24
naught101 commentedhttp://staging.devdrupal.org/ works for me for both most installed and relevancy.
On http://git7site.devdrupal.org/, when I search for a module from the front page, the "sort by" drop down says "most installed", but it's actually sorted by relevancy (BTW, this is spelled incorrectly in the drop-down). If I choose another sort, then it sorts correctly, but still displays "most installed" in the drop down. This means that "most installed" can't be selected with the AJAX interface, but it can with javascript off. Unfortunately, it appears to be sorted backwards (least installed first).
Comment #25
drummDeployed the changes to production.
I corrected the spelling error and am looking into the other D7 issues.
Comment #26
drummI fixed up the sorting with http://drupalcode.org/project/project_solr.git/commitdiff/75065157872421... and http://drupalcode.org/project/project_solr.git/commitdiff/f90ffc2f136ce0....
Indexing had stalled as well, it got caught on a node without a type which I deleted. More projects will be in the index as it updates.
Comment #27
drummNope, not fixed: #1991994: Relevancy not working on project search
Reminder: we have dev sites with read-only Solr access, so any future patches can be tried out with real data and configuration, see http://drupal.org/node/1018084.
Comment #28
giorgoskwhen will this change be applied to drupal.org ?
Comment #29
mcfilms commentedI would very much like to test the better search at http://staging.devdrupal.org/. How can I access it? The pop-up log in does not accept my drupal.org username and password.
Comment #30
drummThere are no pending patches for D6 right now, so http://staging.devdrupal.org/ should be the same as http://drupal.org/. As always, http://git7site.devdrupal.org/ could use testing. The http user/pass for Drupal.org staging and dev sites is drupal/drupal.
If anyone is interested in working on a new D6 fix, let me know and I'll get a dev site set up.
Comment #31
mcfilms commentedThank you Drumm.
I can report that neither one of the development environments are returning search results that are remotely relevant. Attached is my screenshot for a search for "Ubercart." First I used the general search, when I didn't see it I refined it to search modules. I didn't change it to filter for "most installed" but it said it returned those results.
So a search for Ubercart, refined to just modules, and then sorted by relevance and the Ubercart module doesn't even show up above the fold. Apparently Google Analytics and Imagecache have more to do with Ubercart than Ubercart does.
This is moderately frustrating to me. But I am most alarmed because I can remember what it was being new to Drupal. And having to really dig to find a module isn't going to win over new devotes.
Isn't their a way to "weight" certain pages for search results in Solr? Because I think the top 100 modules should be the first thing found when you do ANY search that is a match for the module name. And if it will take manual work to make it so, I'm happy to do it if someone wants to grant me access.
Comment #32
dddave commentedI've closed the following dupes: #1863256: Sort of Not So Relevant Search Results on DRUPAL.ORG and #1936456: Problem with filtering modules.
Comment #33
drummComment #34
dddave commentedClosed another FRESH dupe: #2020807: Site functionality problem
Comment #35
dddave commentedHere we go:
#2046817: Search results sorted poorly and #2046813: Search function not filtering properly
Comment #36
mcfilms commentedAre there any new versions in need of testing? Is anyone working on this?
At DrupalCampLA I spoke to two new Drupal adopters that mentioned issues with finding the relevant modules on this site. All I could do is blush and suggest that they leave Drupal, go to Google, and search for the module by name and include "Drupal module."
Google: "Drupal Views Module" and the Views module appears first
Drupal site search "Views" or "Views Module" and you do not get the Views Module.
This was not always the case on the D.org Drupal 6 install. Something changed for the worse and it is putting off new adopters.
Comment #37
dddave commentedIs this happening due to the upgrade process of d.org to D7? Is this on the list of people working on the d.org upgrade?
Comment #38
drummYes, we've been concentrating on Drupal.org D7. We are set up for volunteers to work on improving this module, as you can see from the comments on this issue.
Comment #39
dddave commented#2061665: Modules Search Problem
Comment #40
dddave commented#2073155: Module filtering is not working correctly
Comment #41
mcfilms commentedIf this is important to anyone else following this thread, I ask that you visit https://groups.drupal.org/node/313013 and "upvote" (click on the plus sign +) this initiative. There is currently a plan to select a few missing features on Drupal.org and devote some resources to them. (Read more and see other ideas at: https://groups.drupal.org/drupal-org-2014-roadmap-brainstorming.)
Comment #42
drummI believe this was fixed at some point.