Bean Software                                            Bean  Software Search Control

        Documentation
  Intro
  Properties and methods
  Tutorial
  Get it now
Support e-mail

 


WayOfSearch Property

Description: It determines what searching technology is used. That could be two values:

  1. LikeKeyword - - this technology of searching supports standard SQL (Structured Query Language) for working with all popular databases (MS Access, SQL Server, MySQL etc.)
  2. MSSQLFullTextSearch - this is optimized way of searching that works only with MS SQL Server databases

Data type: enuWayOfSearch
Default value: enuWayOfSearch.LikeKeyword
Example:  
If your web site use MS Access database, you need to use standard SQL language with Like keyword:

   SearchControl1.WayOfSearch = enuWayOfSeach.LikeKeyword;

After that, if you need a more powerful MS SQL database, you can switch between technologies without a lot of changes in your source code. You only need to change WayOfSearch property like this:

   SearchControl1.WayOfSearch = enuWayOfSearch.MSSQLFullTextSearch;

Your application is now ready to use fast Full Text Search feature on Microsoft SQL Server.