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 6700095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:46:25+00:00 2026-05-26T06:46:25+00:00

I have 2 mysql fulltext search queries that return a different set of results.

  • 0

I have 2 mysql fulltext search queries that return a different set of results.

SELECT e.id AS e__id, 
MATCH(e.subtitle, e.summary, e.title, e.prtext) AGAINST ('lorem') 
FROM exhibitions e

will return a predictable set of 7 rows (I have 10 overall in the table), each having the id of a record that contains the word ‘lorem’.

However, when I introduce a where clause

SELECT e.id 
FROM exhibitions e 
WHERE MATCH(e.subtitle, e.summary, e.title, e.prtext) AGAINST ('lorem')

No rows are returned.

What is the difference between these two queries?

  • 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-26T06:46:25+00:00Added an answer on May 26, 2026 at 6:46 am

    Actually, the issue was I had a number of fulltext indicies on my table structure, when I really only needed one. Here is a correct query with a where and an and clause:

    SELECT  e.id AS e__id,
        e.enabled AS e__enabled,
        e.rewrite AS e__rewrite,
        e.title AS e__title,
        e.subtitle AS e__subtitle,
        e.summary AS e__summary,
        e.type AS e__type,
        e.feature_home AS e__feature_home,
        e.date_start AS e__date_start,
        e.date_end AS e__date_end,
        e.prtext AS e__prtext,
        e.last_update AS e__last_update,
        e.file_id1 AS e__file_id1,
        e.file_id2 AS e__file_id2,
        e.file_id3 AS e__file_id3,
        e.file_id4 AS e__file_id4,
        e.file_id5 AS e__file_id5
    FROM exhibitions e
    WHERE  MATCH(e.subtitle, e.summary, e.title, e.prtext) AGAINST ('lorem')
           AND e.enabled = 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a simple search on our site that uses MySQL fulltext search and
I have tried to use mysql fulltext search in my intranet. I wanted to
I have a pretty good idea how to implement fulltext search with MySQL. I
I have used full text search mysql. My code is select * from uh_property
I have a pretty simple LIKE search for MySQL that i'd like to transform
I implemented MySQL fulltext search and worked perfect. Now the client wants that partial
I have a MySQL fulltext search engine and I want to allow the user
I want to reset stop word list in mysql for FULLTEXT search. I have
I have a mysql fulltext question. Refrence on: http://dev.mysql.com/doc/refman/5.0/en/fulltext-boolean.html SELECT * FROM table WHERE
I have MySQL running such that I can open a client command line 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.