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

  • Home
  • SEARCH
  • 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 8607937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:29:15+00:00 2026-06-12T03:29:15+00:00

I have a table for food and hotels like CREATE TABLE `food_master` ( `id`

  • 0

I have a table for food and hotels
like

CREATE TABLE `food_master` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `caption` varchar(255) default NULL,
  `category` varchar(10) default NULL,
  `subcategory` varchar(10) default NULL,
  `hotel` varchar(10) default NULL,
  `description` text,
  `status` varchar(10) default NULL,
  `created_date` date default NULL,
  `modified_date` date default NULL,
  `chosen_mark` varchar(10) default 'no',
  PRIMARY KEY  (`id`),
  FULLTEXT KEY `description` (`description`,`caption`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1

And I have data in it. I use full text indexing in this table. I use the query

SELECT * FROM food_master am 
WHERE MATCH(description, caption) AGAINST ('Chicken')

This query works fine when i have 2 ‘Chicken’ in the field ‘caption’. but when i put third one it doesnt return a row.

  • 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-06-12T03:29:17+00:00Added an answer on June 12, 2026 at 3:29 am

    try with IN BOOLEAN MODE as

    MySQL can perform boolean full-text searches using the IN BOOLEAN MODE
    modifier. With this modifier, certain characters have special meaning
    at the beginning or end of words in the search string.

    SELECT * FROM food_master 
    WHERE MATCH(description, caption) AGAINST ('Chicken' IN BOOLEAN MODE)
    

    Demo

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

Sidebar

Related Questions

I have the following: CREATE TABLE food_delivery ( foodtype varchar(50) NOT NULL, foodname varchar(50)
I have the following table: ID Type Food Drink Animal -------------------------------------- 1 NULL Y
I have the following table: ThisCategoryID int IDENTITY, AUTO_INCREMENT Title text Type text CategoryID
So I have three tables: Table Place: _id autoincrement not null primary key, name
I have a table that looks something like: Favourite color | Favourite Food |
I have a diners table: NAME | FOOD ----------------- matthew | rice matthew |
I am not sure even how to ask this question. I have a table
I have a table that consists of the following: food || last_order_date ------------------------- pizza
I have a table called food. I am selecting the category of the food
I have a table like the following id field_id field_value user_id 1 4 'london'

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.