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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:05:11+00:00 2026-06-12T05:05:11+00:00

I m having little confusion using MySQL fulltext. I have database whose charset is

  • 0

I m having little confusion using MySQL fulltext. I have database whose charset is set to utf-8 and collation set to utf8_unicode_ci

I have following flow of searching products. User chooses from the flow below to search any product

  • user selects product_type, enum field with value consumable/unconsumable.
  • Then selects product_nature, enum 0=>finished 1- unfinished.
  • then user selects location, varchar User may select multiple location.
  • then user specifies price ranges
    and so on (about 5 more selection)
    In search page the only thing users types is, location, price ranges. Rest all they select from combo.

My confusion is.

  1. Does my database supports FULL Text Search?
  2. What are the fields I need to index for enabling full text search.
  3. As full text is supported in varchar and text datatype field only. How to get relevant results if many fields user selects for filter is in enum
  4. I want to show exact match at top and nearly matching products depending upon the filters user selects like I described above. Does order by fulltext relevancy work here because there are many fields which are of type enum.

Edit
For better understand for example

This search is for those specially who knows what to buy but doesn’t know anything else. Like I need a Mobile PHone, but I don’t know anything else, I just select its type(Wifi/without wifi) from combo, I then select camera (with/without), I then select other few features like this. I then specify price range I can afford, I then want phone available in store in particular location. For this I type location A, location B, location C. I want results based on either of these location. And I want to order results according to the nearest match of the search parameter specified. Exact match to nearest match, then least nearest match. Hope this helps

Can anybody throw some light on this?

Thanks

  • 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-12T05:05:12+00:00Added an answer on June 12, 2026 at 5:05 am
    1. The documentation on the Full-Text Search Functions page
      states that FULLTEXT can only be used with MyISAM, however, MySQL 5.6 added support for the FULLTEXT index with InnoDB (see Section 14.2.4.12.3 on the InnoDB Table and Index page). If your table(s) are setup as MyISAM, then yes – you should have support; with InnoDB, potentially – pending on your MySQL version.

    2. To enable the full-text search, you should add a FULLTEXT index
      only on the fields that you’re going to use the search on (no point
      to add it to fields you won’t). A FULLTEXT index can only be
      applied to CHAR, VARCHAR, and TEXT column-types, so that may
      be a start. Your product names may be too short to worry about a
      FULLTEXT index (consider maybe a HASH index instead), but your
      product descriptions (if you have them) would be really good for it.

    3. enum data is good to index with a BTREE index, not a FULLTEXT
      one.

    4. Not sure; could you post an example of which fields would be queried
      and ordered and their data-types to give a better image as to what
      you need?

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

Sidebar

Related Questions

im having a little issue here. I have MediaElement.js set on my project. It
I'm having a little confusion due to conflicting return values from CreateProcess() and GetLastError()
I'm having little trouble creating a script working with URLs. I'm using urllib.urlopen() to
I'm using Particle Swarm Optimization(PSO) in java. I am having little knowledge about what
I'm having a little confusion with crontab interval format. The point is that i
I'm having a little bit of confusion regarding how low-level winsock is? I am
FLTK problems with MSV2010C++ I'm following Programming - Principles and Practice Using C++. Having
Hi all of SO users I'm having little confusion with understanding null and Empty.
Im having some general confusion with encoding on a little tool I'm writing. First
I'm having a little confusion when distinguishing this in an as3 file lets say

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.