Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Full text search feature in my website. I have Record with "AT&T" Title.

When i am preforming search for "AT&T" that doesn't gives me the of "AT&T". I have also check for "L-3" that also

not found but when i perform sub string search without Fulltext search then that should display desired results.

Even I tired to quarry "select * from sys.dm_fts_index_keywords(db_id('IWPC'), object_id('ARC_DOCUMENT')) Where display_term like'%at&t%'"

that also doesn't display result for "AT&T".

My Question is how can i index "AT&T" as single word and how can i get search result against "AT&T"
Posted

1 solution

/* try to find out in this way   */

/* CandidateDetails.LastName like '%" + SearchByName + "%' "; there should not be any space between '%YourWord %' because it considered space also */

/* i have tried this and working Properly May be There is some Other Error */
   

insert into test1 values('AT&T')
select Name from test1 where Name like'%AT&T%'
select Name from test1 where Name like '%at&t%'

Name
---------------------------
AT&T
(1 row(s) affected)
Name
---------------------------
AT&T
(1 row(s) affected)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900