I created a view and fetched the content from a content type. I created an exposed filter with two fields (title and body) using contextual filters.

Search works for exact match keywords, but it doesn't work with similar keywords. For example, for timesheet and application it works fine, but if I search using the wrong spelling (for example, timeshet or appliction), it doesn't work.

How do I create a keyword relevant search?

1 Answer 1


You would need Search API and Search API Solr for this, along with a Solr instance to get relevancy scoring and support for fuzzy searching (e.g. iphone iphane etc).

It is mostly configurable from the Drupal UI.

  • Thanks Kevin, I am checking, Is relevancy search possible without using solr? Sep 25, 2017 at 14:21
  • No. Without Solr or equivalent, you won't be able to do a search like that.
    – Kevin
    Sep 25, 2017 at 14:22
  • 1
    I believe Search API Database Search does support relevance, but Solr is better in fuzzy matching Sep 25, 2017 at 14:45
  • I have enabled the 'Search api database search' module and created the views with the indexed values, But expose filter is not appearing i have tried this field 'Search: Fulltext search (exposed)' from both the place FILTER CRITERIA and CONTEXTUAL FILTERS Sep 26, 2017 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.