Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

Server-Side Processing and Regex Search / Filter

$
0
0
Unfortunately I didn't see that regex searching was not possible with server-side processing.

I had everything installed and working and then as soon as I typed in more than 1 word I got "no results", it doesn't even search for multiple words that are in the same string!

So I need a solution really... whether that means multiple boxes for each column or just being able to search a string with spaces from one column... This has got to work.

I have experimented a little with my server_processing.php, and was able to connect each column into a single string in one column, but the search filter still doesn't find anything if I put in more than 1 word.

I'm using an additional WHERE clause in the MySQL string, connected with a $_GET... this is for different tables to different things (easier that way than having dozens of datatables installations).

Also note the following comment in the example server_processing.php :
	/* 

	 * Filtering

	 * NOTE this does not match the built-in DataTables filtering which does it

	 * word by word on any field. It's possible to do here, but concerned about efficiency

	 * on very large tables, and MySQL's regex functionality is very limited

	 */

Particularly "it's possible to do here"... please explain how. My datatables are pretty big, some with over 20,000 rows, so it's particularly important for filtering to work with more than just 1 word.

Thanks. =)

Viewing all articles
Browse latest Browse all 82115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>