Apachesolr sort based on nodeviewcount I need to provide the option for sorting on the basis of nodeviewcount.
The criteria is that if any text is provided for search, the search results will be displayed according to maximum number of nodes viewed.
Take a look at Apache Solr View Count module which does exactly the same.


  This module allows you to index the node view count to Apache solr
  index as a custom field and let you sort SOLR results. The module
  requires Apache solr search module. 


Disclosure: I'm one of the module maintainer.