6

Is there a way to create a "More like this" block with the Views, and the Search API Solr modules?
I saw this, but it doesn't work.

11

Here is the recipe for search_api_solr as per the OP. Note: both apachesolr and search_api_solr leverage Solr's builtin more like this feature. It is, therefore, not available to normal search.

  1. Enable some modules: search_api, search_api_solr, search_api_views
  2. Create a Search server of the Solr class.
  3. Create a Search index (or use the Default node index) and point your Solr search engine at it.
  4. Create a new view on your search index NOT on Search index. eg:

    Show *Default node index* sorted by *unsorted*

  5. Continue and edit.

  6. Reveal Advanced and Add a Contextual filter.
  7. Filter on Search or scroll down to find Search: More like this.
  8. Under When the filter is not available select Provide default argument: Content ID from URL.
  9. Configure by selecting the Fields for Similarity that you want to determine likeness on.

http://drupal.org/node/1250304#comment-4870278

  • "9.Configure by selecting the Fields for Similarity that you want to determine likeness on." I am interested in Taxonomy term likeness.How can I do that?thanks – sokratis Dec 18 '13 at 14:19
  • @sokratis - If they are in the indexed in the search index (e.g. default node index), you can select them. – geerlingguy Jan 23 '16 at 20:17
  • Also, note that the search_api_views module is bundled with the search_api module itself, not a separate contrib module. – geerlingguy Jan 23 '16 at 20:17
1

You don't need anything to create the 'more like this block', just go to admin/structure/block/manage/apachesolr_search/mlt-001/configure.

However, you can follow this tutorial on how to create it with the Views module, but it's based on taxonomy terms.

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.