0

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?

0

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.

4
  • Thanks Kevin, I am checking, Is relevancy search possible without using solr? – Sachin Tonte Sep 25 '17 at 14:21
  • No. Without Solr or equivalent, you won't be able to do a search like that. – Kevin Sep 25 '17 at 14:22
  • 1
    I believe Search API Database Search does support relevance, but Solr is better in fuzzy matching – Neograph734 Sep 25 '17 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 – Sachin Tonte Sep 26 '17 at 14:40

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.