Update 12/24/2017
You can control what is searched (and even what is ordered) through the option columns.render .
In this case, you must pass a function and treat when the second parameter type
has the content filter
. The fourth parameter meta
can help determine what the line is without depending on some additional data in the table, since meta.row
is the index of the line.
It would look something like this:
render: function (data, type, row, meta) {
if (type == "filter" && meta.row == 0)
return "Texto customizado"; //aqui fica a seu critério o valor que será pesquisado
return data;
}
Original answer
You can control what is searched (and even what is ordered) through the option columns.render .
In this case, you must pass a function and treat when the second parameter type
has the content filter
. It would look something like this:
render: function (data, type) {
if (type == "display")
return data;
else if (type == "filter")
return "Texto customizado";
}