Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
krishna.netblogs
Starting Member
7 Posts |
Posted - 2012-07-27 : 09:13:36
|
HiWe have a application where customers search for data. In this page we provide search type is a drop down list box.There are four choices are1.Exact Phrase2.Any of the Word3.All of the words4.Boolean Searchthe user type a string and select one of the search type from this list,Then accordingly we have to show the results. We have to write a sql query to return results.We have wriiten sql using containstable().But it does not return all the results.The below query we are using..SELECT Distinct TOP 50 c.case_id,cal.cas_detailsFrom g_case_action_log cal (READUNCOMMITTED) Inner Join g_case c (READUNCOMMITTED) ON (cal.case_id = c.case_id)INNER JOIN containstable(es.g_case_action_log, cas_details, ' "searchword" OR "<br>searchword" OR "searchword<br> " ') AS key_tbl ON cal.log_id = key_tbl.[key] Is there any improvements to get all the resultsOr Any one has implemented the same scenario. can you please help this issue.Please help With Regardskrishna |
|
krishna.netblogs
Starting Member
7 Posts |
Posted - 2012-09-18 : 08:21:15
|
Hi This issue has been resolved by changing one of settings of FullText Catalog i.e. Track Changes.this property has 3 options. 1) Automatic2) Manual3) Do not track changesBut the 3rd (Do not track changes) option has selected in our case during FTCatalog installation.that's why we are getting this issue.Now we have selected as Automatic .Now we are getting expected results.Thanks |
 |
|
|
|
|