Closed (duplicate)
Project:
Drupal.org infrastructure
Component:
Servers
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
5 Sep 2011 at 05:43 UTC
Updated:
21 Aug 2014 at 21:00 UTC
Jump to comment: Most recent
If you search for "Organic groups", an exact title match, in Solr right now, http://drupal.org/project/og doesn't appear until the second page of results: http://drupal.org/search/apachesolr_multisitesearch/organic%20groups?fil... "Google Analytics" likewise appears about mid-way down the first page.
This doesn't happen for all modules though. "Views" brings up Views at the top of the list. As does CCK, Token, Webform, etc.
Is it possible to tweak Solr so that it favours exact title matches higher than it currently does?
Comments
Comment #1
skottler commentedThis is clearly an issue and has been for a while. It should be easy to add a field-specific boost parameter, like node_title^5 (obviously not the correct field name).
Comment #2
webchickI wasn't sure what that means, but Sam explained in IRC that it's a way of boosting the node title field so that it impacts the index 5x. Sounds good to me!
However, I'm not sure that's enough. Something that's interesting is that in a global search http://drupal.org/search/apachesolr_multisitesearch/Organic%20Groups Organic Groups is at the top of the list. But when you filter it to modules only, http://drupal.org/search/apachesolr_multisitesearch/Organic%20Groups?fil... it's nowhere near. So maybe the boost needs to be per-facet or something? (/me makes up words.)
Comment #3
mgiffordWe had a great discussion at the Community Summit at DrupalCon yesterday. Drupal search configuration was raised as a barrier to participation.
A bunch of it centered around problems with drupal.org's search. The example that came up was Views:
https://drupal.org/search/site/views
The Views Module page should be #1, right?
https://drupal.org/project/views
Maybe that shold be a new issue, however since many poeple are just giving up on Drupal search, maybe this should be a higher priority.
Comment #4
drummLet's centralize this discussion on #658048: Users should get an expected result when using search.
We already have the title boosted all the way up to 21x, so the solution may not be making that higher.
Comment #5
mgiffordFine to close this and focus efforts. Just realized that having the current Solr config might help. I had no idea it had already been cranked up so high.