When you do a Solr search, are the results sorted by Title > Type > Author > Date by default (since the links appear in that order, and those links have a 'class="active"') ?

If yes, would it make sense to have a desc (or asc) icon displayed next to them right after a user ran a search (instead of only after the click on a sort link), to make clear(er) that those sorts are active? If they're not sorted like this by default, I'm wondering why these links have a 'class="active"'?

Comments

JacobSingh’s picture

Priority: Normal » Minor

Hi,

The results are default sorted by relevancy. Why do they have class active... good question :)

I'm not sure. Perhaps RobertDouglass or DrunkenMonkey can answer that.

janusman’s picture

Putting in my $0.01 worth of usability knowledge, a "sort by relevancy" (rank? score? relevancy?) link is missing, and should be added (makes the interface clearer-- if none of the current sorts are selected, how would the user know what the default sort is?)

JacobSingh’s picture

@janusman:

Let's add a sort by irrelevancy link as well...

brunodbo’s picture

Title: Solr search default search » Solr search default sort

Typo in the initial title. Also curious what 'relevancy' refers to.

JacobSingh’s picture

Title: Solr search default sort » Change Sort options to list "best match" or "relevancy" at the top

@brunodbo:

Relevancy is based on a myriad of factors, but is primarily how frequently the keyword appeared in the article, and where in the article. However, indexes can also be biased by date, length, etc...

I'm updating this ticket title to what actually has to be done as per janusman's suggestion.

robertdouglass’s picture

Category: support » feature

I don't know why the current sorts have class active. Probably because the path stays the same and the sort parameter gets sent in with its own variable name.

Adding a default sort by relevancy that clearly shows itself as active is a good idea. This also functions as an "unclick" link if you've done some other sort and want to get back to the original state.

robertdouglass’s picture

Priority: Minor » Normal
robertdouglass’s picture

Priority: Normal » Critical

critical = blocking issue for 1.0 release.

pahariwalla’s picture

I've added a sort by "Relevancy" link as a part of a separate issue #270604: Clicking facet link destroys sort. Did not deal with "irrelevancy".. umm...

I also noticed that this may overlap with yet another larger effort #258626: Add "your current search" block

janusman’s picture

@pahariwalla: you're joking with the irrelevancy thing, right? =)

I say this is fixed as per #270604: Clicking facet link destroys sort!

pahariwalla’s picture

heh heh ... actually @JacobSingh was the one who brought up irrelevancy ... I'm guessing he was joking, but the fact the he mentioned it may be relevant, and knowing Jacob .... ;-)

JacobSingh’s picture

Status: Active » Closed (duplicate)

Okay, I guess we'll go with relevancy then...

Dupe of: http://drupal.org/node/270604

(closing)