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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:48:55+00:00 2026-05-13T07:48:55+00:00

Is there a way to perform a FULLTEXT search which returns literals found within

  • 0

Is there a way to perform a FULLTEXT search which returns literals found within words?

I have been using MATCH(col) AGAINST('+literal*' IN BOOLEAN MODE) but it fails if the text is like:

  • blah,blah,literal,blah
  • blahliteralblah
  • blah,blah,literal

Please Note that there is no space after commas.

I want all three cases above to be returned.

  • 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-13T07:48:56+00:00Added an answer on May 13, 2026 at 7:48 am

    I think that should be better fetching the array of entries and then perform a text manipulation over the fetched data (in this case a search)!

    Because any text manipulation or complex query take more resources and if your database contains a lot of data, the query become too slow! Moreover, if you are running your
    query on a shared server, that increases the performance issues!

    You can easily accomplish what you are trying to do with regex, once you have fetched the data from the database!


    UPDATE: My suggestion is the same even if you are running your script on a dedicated server! However, if you want to perform a full-text search of the word “literal” in BOOLEAN MODE like you have described, you can remove the + operator (because you are searching only one word) and construct the query as follow:

    SELECT listOfColumsNames WHERE
    MATCH (colName) 
    AGAINST ('literal*' IN BOOLEAN MODE);
    

    However, even if you add the AND operator, your query works fine: tested on Apache Server with MySQL 5.1!

    I suggest you to read the documentation about the full-text search in boolean mode.

    The only one problem of this query is that doesn’t matches the word “literal” if it is a sub-string inside an other word, for example: “textliteraltext”.
    As you noticed, you can’t use the * operator at the beginning of the word!

    So, to accomplish what you are trying to do, the fastest and easiest way is to follow the suggestion of Paul, using the % placeholder:

    SELECT listOfColumsNames 
    WHERE colName LIKE '%literal%';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to perform data validation using CHECK constraints in t-sql and
Is there any way to perform an update for normalizing a field using a
With MongoDB is there a way to perform a bounds query (within a box)
Is there a way to perform a GET and pass parameters using Ajax.ActionLink <%=
Is there a way to perform a full text search of a subversion repository,
Is there a way to perform binary search on a file stored in UTF
Is there any way to perform a merge with subversion 1.6 which would preserve
Is there a way to perform a group conditional statement? For example, I have
Is there a way to perform a top (Take) linq query using percentage? The
Is there a way to perform a MySQL query and have one of the

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.