Hello,

is there an easy way to highlight views search results?

Thanks a lot,

Nora

Accepted answer

The Search Api module will be your friend. It has the option to do highlighting. I have used this just now to try and reproduce what you are trying to do. It has a Search API Views submodule.

You need a search service and possibly Search API Database Search will help if you don't need a more advanced search.

These really helpful Drupal 7 based articles will tell you how to do it:

https://www.webwash.net/intro-to-search-api-part-1-how-to-create-search-...

https://www.webwash.net/add-keyword-highlighting-using-search-api-in-dru...

 

 

Comments

Hello Steve,

thanks a lot, but my question was not well worded. I constructed a more or less complex search with views filters and I´m looking for a possible to highlight the searched filters criterias in the search result list. Is there a possibility?

Best regards,

Nora

The Search Api module will be your friend. It has the option to do highlighting. I have used this just now to try and reproduce what you are trying to do. It has a Search API Views submodule.

You need a search service and possibly Search API Database Search will help if you don't need a more advanced search.

These really helpful Drupal 7 based articles will tell you how to do it:

https://www.webwash.net/intro-to-search-api-part-1-how-to-create-search-...

https://www.webwash.net/add-keyword-highlighting-using-search-api-in-dru...

 

 

Hello Yorkshirepudding ;)

Thanks for the advice with the "Search Api Module", the search results are really good and the highlighting of the searched terms is working perfekt.

But I have a question: when I construct a search with the "Search Api" via views, is there a possibility to show just  the search form without the loaded entities from the database?

Maybe you have a solution?

Thank you very much!

Nora

Hello,

I found the solution with the module "better exposed filters".

There is an option: Require input before results are shown .... That is exactly what I was looking for.

Nora