search.smart

Since: DataTables 1.10

Enable / disable DataTables' smart filtering.

Description

DataTables' built-in filtering is "smart" in that it breaks the user's input into individual words and then matches those words in any position and in any order in the table (rather than simple doing a simple string compare).

Although this can significantly enhance usability of the filtering feature, it uses a complex regular expression to perform this task, and as such it can interfere with a custom regular expression input if you enable that option (search.regex). As such, this option is provided to disable this smart filtering ability.

Type

This option can be given in the following type(s):

Default

  • Value: true

Example

Disable smart filtering:

$('#example').dataTable( {
  "search": {
    "smart": false
  }
} );

Related

The following options are directly related and may also be useful in your application development.