Namespace: oSearch - documentation

# Namespace: oSearch

## Ancestry: DataTable » .defaults. » oSearch

DataTables v1.9.1 documentation

This parameter allows you to have define the global filtering state at initialisation time. As an object the "sSearch" parameter must be defined, but all other parameters are optional. When "bRegex" is true, the search string will be treated as a regular expression, when false (default) it will be treated as a straight string. When "bSmart" DataTables will use it's smart filtering methods (to word match at any point in the data), when false this will not be done.

### Example

       $(document).ready( function() {
         $('#example').dataTable( {
           "oSearch": {"sSearch": "Initial search"}
         } );
       } )

### Extends

- DataTable.models.oSearch

## Summary

### Properties

<static> bCaseInsensitive :boolean
  Flag to indicate if the filtering should be case insensitive or not
<static> bRegex :boolean
  Flag to indicate if the search term should be interpreted as a regular expression (true) or not (false) and therefore and special regex characters escaped.
<static> bSmart :boolean
  Flag to indicate if DataTables is to use its smart filtering or not.
<static> sSearch :string
  Applied search term

## Details

### Properties

<static> bCaseInsensitive :boolean

  Flag to indicate if the filtering should be case insensitive or not

  ##### Extended from:

  DataTable.models.oSearch
<static> bRegex :boolean

  Flag to indicate if the search term should be interpreted as a regular expression (true) or not (false) and therefore and special regex characters escaped.

  ##### Extended from:

  DataTable.models.oSearch
<static> bSmart :boolean

  Flag to indicate if DataTables is to use its smart filtering or not.

  ##### Extended from:

  DataTable.models.oSearch
<static> sSearch :string

  Applied search term

  ##### Extended from:

  DataTable.models.oSearch