I have a basic search configured on my site. I wanted to know how is the default search results are sorted in drupal, is it by the number of words found on the content or based on date the content is created or something else. I know it can be altered using custom modules. But I am curious to know how default on works.

  • 2
    When indexed, words in nodes/pages/whatever are given a relevancy score (see the search_index table). The default search results are sorted by that score.
    – Clive
    Mar 30, 2016 at 12:20

1 Answer 1


Drupal's defaul search result is sorting on the basis of:

  1. Number of comments
  2. Keyword relevance
  3. Content is sticky at top of lists
  4. Content is promoted to the front page
  5. Recently posted

Under Content Ranking configuration (admin/config/search/settings) you can setup the influence of the above factors while searching.

Thanks, ARUN AK

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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