1

We have replaced Drupal's core search with SolR but we have noticed a recursiveness issue regarding the search results, for ex. when searching “executive committee”, documents created in 2006 and 2007 are listed before newer documents created in 2010. (http://www.etuc.org/search-page)

What we would like to do is to sort the articles by date and by relevance.

We have tried to alter this at the View level (date + Search:relevance) but it short circuits SolR.

We have looked at the search api settings and it seems that one cannot boost date field. Only fulltext fields are ‘boostable’ (?)

We have also found a few articles related to the subject:

but they weren’t much help.

We are using Drupal 7, SolR 3 and the following modules

  • Search API 7.x-1.11
  • Search API autocomplete 7.x-1.0
  • Search facets 7.x-1.11
  • Search views 7.x-1.11
  • SolR search 7.x-1.4

Does anybody has an idea how to fix this issue? Thank you very much in advance.

  • did u finally get a solution ? if so pls share – vishal Sep 3 '14 at 20:01
0

I'm not 100% sure this will work, but definitely worth a try.

Go to /admin/config/search/search-api/index/your_index/edit

And then under this heading: CONFIGURE THE DEFAULT TRACKER There are two options to set the "Default index tracker which uses a simple database table for tracking items."

Select "most recent items first". You will need to reindex the site after saving the settings for the change to take effect.

 Index items in the same order in which they were saved
 Index the most recent items first```

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.