Datatables 1.10 serverside processing and regexp
Datatables 1.10 serverside processing and regexp
Reading through the manual, it seems like I can use regexp with server side processing.
http://datatables.net/manual/server-side
"Note that normally server-side processing scripts will not perform regular expression searching for performance reasons on large data sets, but it is technically possible and at the discretion of your script."
Is there an example of this. I have the following
var oTable = $('#testTable').dataTable( {
"processing": true,
"serverSide": true,
"dom": 'rtip',
"lengthMenu": [[50, -1], [50, "All"]],
"search": {
"value": true,
"regex": true
},
"ajax": "scripts/server_processing.php"
} );
I'm using the following code to search/filter
$('#testTable').DataTable().search('1120|2YR',true,false).draw();
When I search, I get no results. When I filter, nothing is getting filtered. Any help on this is much appreciated. Thanks
Answers
bump. Does anyone have an example of how to get regexp search working with datatables when using server side processing?