I am here to share about Drupal's Search Module limitations & solution to overcome it.

Limitation:- Drupal's Search Module provides search results on the basis of exact keyword match. i.e. when we search a word like 'what' in our website, it give results only where the word 'what' exactly matches & it doesn't include words like 'whatever' in search results. It concludes that Search module executes search query with a EQUAL(=) condition in WHERE clause but we always require results from a search query with a LIKE condition in WHERE clause.

Solution:- We need to create our own custom Search module with same features exactly the Drupal's Search module but with LIKE condition based search query. As we have created a custom search module for reference, you can use & modify it according to your requirement.

You all are free to ask/share anything regarding this.

CommentFileSizeAuthor
CustomSearch.png50.19 KBdevelopers_rtpl

Comments

andymantell’s picture

Status: Needs review » Needs work

Hi,

Assuming this is your sandbox (http://drupal.org/sandbox/annkit87/1594130) - It seems that your project´s repository contains no code yet, please have a look at the documentation about using GIT on drupal.org.

Can the goals of this module be achieved using the search_api module? (http://drupal.org/project/search_api). Specifically, the search_api_db sub module (http://drupal.org/project/search_api_db).

Once you are done and your module is ready to review, please include a link to the project page and Git repository in your original post before setting the status back to "needs review".

Thanks,

Andy

andymantell’s picture

Priority: Critical » Normal

As a side note, your application should not be set to critical priority. Please read about project application priorities here.

If you wish for your application to be reviewed sooner, you could consider working towards a review bonus.

klausi’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.