1

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.

0

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.

  • Thanks for your quick response. I check whether it is working fine for me and inform you. – Shubham Saurav Aug 30 '16 at 5:43
  • It is not working fine. Node view count is increasing, But when i am searching the results are not showing properly. – Shubham Saurav Sep 12 '16 at 13:42
  • I would like to know. Once enabled, will the option displays in settings of apache sort. – Shubham Saurav Sep 12 '16 at 13:47
  • There were some issue in nodeviewcount due to which it was not working fine. Once I updated the module. It worked fine. Thanks for help. – Shubham Saurav Sep 12 '16 at 15:39
  • Another thing to note is the node view count needs to be indexed in apachesolr. So the changes will reflect only upon indexing. – Suresh R Sep 13 '16 at 4:17

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.