1

I have recently installed the Search API module and associated modules to build a better site search.

My current search function is basic out of the box search but there are is lot of custom HTML and CSS to make the search results look good. Therefore I am wondering if I will have to manually redo everything when making a dedicated "search view" (a type of view enabled by the Search views module) or if it there is some way to clone/copy my previous "content view" but change it's type.

I have looked for answers and it was not possible in Drupal 6 but I am running Drupal 7.

1

You can use Display Suite search module to use search view like content view. Display Suite module have a submodule namely search that extend the search results for Drupal core or Apache Solr.

Steps:

  1. Install Display Suite Search Module after downloading from above link.
  2. Go to content type's manage display and check the search result option that you find under custom display settings on vertical tab after that save it. enter image description here
  3. Now Go to Search result display mode local tab link and configure your display of fields as you want and save it. enter image description here

For Manage Core search result :

  1. Go to admin/structure/ds/list/search and choose option 'search result' in view mode and save it. enter image description here

  2. Go to admin/config/search/settings and chose option Display Suite Search for ACTIVE SEARCH MODULES and Default search module.

enter image description here

Now search using core search form. This will display differently as core search result.

Now Manage Search api Search result :

  1. Go to view of desired search index views.
  2. Choose Format show as Rendered entity enter image description here
  3. Go to Format show setting option and choose option 'Search result' enter image description here
  4. Now save this views.

After that you can see search api result is as you configure previously on manage display.

  • Thanks, that may be my salvation in this matter. I will try it out immediately. – Sigvard Mar 19 '14 at 12:10
  • Where is that module located? It is not located in the list of Search API modules and the links in the name are to the Display Suite and Search API modules. drupal.org/node/1999262 – Sigvard Mar 19 '14 at 13:36
  • @Sigvard Check updated answer. – Rupesh Mar 21 '14 at 17:19
  • It didn't solve the problem I thought I had but it was an excellent guide on how to solve things properly instead =). – Sigvard Apr 11 '14 at 10:06

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.