Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 640011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:54:21+00:00 2026-05-13T20:54:21+00:00

This is quite weird but my search function can search for any word except

  • 0

This is quite weird but my search function can search for any word except the word “grinder” from my item table. I have tried everything but it does not seem to search for that word. Can anyone help me please?

CREATE FULLTEXT INDEX item_name_other_name_desc_index 
    ON item (name,other_name,description) 

public static function Search($string) 
{    

    $delims = ',.; '; 
        $word = strtok($string,$delims); 
        while($word) 
        { 

           $result['accepted'][] = $word;                    
           $word = strtok($delims); 

        } 

          $string = implode(" ", $result['accepted']); 

    $sql = 'SELECT item_id,name,other_name,description,price,discounted_price, thumbnail_photo,large_photo 
    FROM item 
    WHERE  
    MATCH(name,other_name,description) 
    AGAINST(:string)' ; 
    $parameters = array(':string' => $string); 
    $result['items'] = DB::GetAll($sql,$parameters); 
    return $result; 
} 

The names of the items:
9 In 15 AMP Motor Angle Grinder
8 In Bench Grinder
1/4 In Angle Die Grinder
7 In Angle Grinder
3 In Straight Grinder
Ryobi HP512K cordless drill/driver kit
6-Pack Spray Paint
Non-Contact Voltage Tester

When I change the above to :
9 In 15 AMP Motor Angle Grinder
8 In Bench Grind
1/4 In Angle Die Grind
7 In Angle Grind
3 In Straight Grind
Ryobi HP512K cordless drill/driver kit
6-Pack Spray Paint
Non-Contact Voltage Tester

and I search for Grinder, the record => 9 In 15 AMP Motor Angle Grinder is being displayed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:54:22+00:00Added an answer on May 13, 2026 at 8:54 pm

    By default, mysql fulltext search treats a word that occurs in more than 50% or the rows as a stopword ( http://dev.mysql.com/doc/refman/5.1/en/fulltext-natural-language.html ). Try searching in boolean mode ( http://dev.mysql.com/doc/refman/5.1/en/fulltext-boolean.html ), where you don’t have 50% threshold.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this website that has a search feature which searches a table
I have faced this problem quite often during the last couple of months, during
I have been hearing this term quite a lot. I have a bunch of
I've never learnt JavaScript, but I imagine this is quite a simple problem. Just
I know it is quite some weird goal here but for a quick and
This must be something simple but it's driving me nuts! I have a migration
I have come across a situation (which I think is weird but is possibly
I have a 300.000 rows table; one of the columns is a varchar() but
I am intentionally leaving this quite vague at first. I'm looking for discussion and
I run into this quite often where a new page is supposedly tested and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.