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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:00:27+00:00 2026-06-14T07:00:27+00:00

I have an application that allow users to search on multiple columns (prod_name,prod_desc) So

  • 0

I have an application that allow users to search on multiple columns (prod_name,prod_desc)

So I used full text search like below, but it does not return all the records, for excample I tried to find ‘o’ character in 2 columns (prod_name,prod_desc)but it can not find for some records.
Also when I do not use wildcard for the ‘o’ character it can not find any thing while contains means like %o%.
I am a bit confused about full text search.

Please help what is the problem.

CREATE FULLTEXT CATALOG catalog_crashcourse3;

CREATE FULLTEXT INDEX ON products(prod_name,prod_desc)
KEY INDEX pk_products ON catalog_crashcourse3;

SELECT prod_name, prod_desc
FROM products
WHERE CONTAINS((prod_name,prod_desc), '"*o*"');
  • 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-14T07:00:28+00:00Added an answer on June 14, 2026 at 7:00 am

    SQL Server FTS is a word-based search process. When you create a full-text index on a column, the indexing engine crawls the content and breaks it into individual words in a process known as tokenization. The index then stored the word, the primary key of the row it was found in, and the word’s position in the content (i.e. is is the first word in the field, the 57th word, or whatever).

    When you specify a CONTAINS predicate such as

    CONTAINS((prod_name,prod_desc), '"o"');
    

    the SQL Server FTS engine looks for tokens (i.e. words) in its index that are “o”. If your content does not have the word “o” in it (which is probably doesn’t) then no matches will be found.

    As you point out, you can do wildcard searches, where you try and matched patterns in the indexed word. For example, if you specify a predicate such as

    CONTAINS((prod_name,prod_desc), '"o*"');
    

    then the search will return all words in the indexed content that start with the letter “o”

    FTS is best used when you want to search for groups of words in your indexed content. It can do sophisticated word stemming (such as searching for “ran” and “running” when you specify “run”). It also provides a ranking of the search result content so that you can find the best match. If you just want to search for a specified word in your content and your content is not too large, you may not need FTS. As MikeSmithDev pointed out in the comments, you may be able to just get away with a LIKE clause.

    Note added: In response to your comment, if you have a table with 8 columns that you want to search using FTS, then you would create full-text indexes on each of these columns and search them as follows:

    CONTAINS(*, '"Word"')
    

    where the asterik indicates that all 8 indexed columns in the table should be included in the search.

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

Sidebar

Related Questions

I have a web application that allows users to enter search criteria and the
I have an application that allow users to choose picture from native gallery then
We have an application that allows users to add/edit/replace/delete content (text, images, swfs, mp3s,
I have an application that allows the user to edit multiple text fields and
I have a web application that allows users to create an account, and in
I have a web application that allows users to build a 'client list.' We
Let say, I have a web application that allows users to upload images and
I have a Backbone.js application that allows users to create graphs based on large
I have a PropertyGrid in my application that is used for editing arbitrary objects.
I'm looking for techniques that allow users to override modules in an application or

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.