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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:18:00+00:00 2026-06-05T15:18:00+00:00

So i have a problem with mysqls match against. I need to do something

  • 0

So i have a problem with mysqls match against.

I need to do something like this:

SELECT somefield FROM my_table WHERE MATCH(somefield) AGAINST ('some 2 x 3');

Where “some 2 x 3” is the thing i’m searching for. But the problem is mysql searches for each word so it will search for ‘some’, ‘2’, ‘x’ and ‘3’ and as I can’t change ft_min_word_len in my mysql settings this just doesn’t work and ignores anything less that 2 characters.

So what i want to do is group the ‘2 x 3’ bit in the query.
So it could come out like this???

SELECT somefield FROM my_table WHERE MATCH(somefield) AGAINST ('some {2 x 3}');

This would search for ‘some’ and ‘2 x 3’

Is the possible if so how could i do it?

thanks for your help!

  • 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-05T15:18:02+00:00Added an answer on June 5, 2026 at 3:18 pm

    It seems that fulltext isn’t the right solution for your request. MySQL won’t index the phrase 2 x 3 and even not the word some, because it is on stop words list. I suggest you to extend the query with OR somefield LIKE '%some 2 x 3%' clause to handle these cases where fulltext search is not enough.

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

Sidebar

Related Questions

I have problem with php's preg_match.I want to make something like this : When
HI, I have a problem with this query SELECT * FROM table WHERE `name`
I need help for this problem. In MYSQL Table i have a field :
I have some problem with MySQL Workbench in that I sometimes can't set foreign
I have a problem in mysql. I need to fetch certain sets of records
I have a mysql problem, my query looks as follows but not complete SELECT
I have some problem whith such mysql_query INSERT INTO table VALUES ('', CURDATE()-1) why
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 a problem while selecting from a table containg data in utf-8 format
I have a bog standard MySQL fulltext query as follows: SELECT * FROM accounts

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.