Search Excluding Words
Search Excluding Words
ManiHIn
Posts: 17Questions: 4Answers: 0
Hello,
Is there any possibilitiy to exclude words in datatables search like in google Minus or a NOT?
Thanks for help
Manuel
This discussion has been closed.
Replies
Hi @ManiHIn ,
There's nothing currently that does that. You could develop a filter plugin that does it, perhaps with some clever regexs.
Cheers,
Colin
I am not so sure. At least if you do the search using serverSide processing you can manipulate what is passed on to the server for searching. Hence you could easily filter out words or symbols from your search string.
Here is an example showing how to manipulate the search. In this case it is about dates and numbers that need to be in MySQL-format for server side search.
https://datatables.net/manual/server-side#Sent-parameters
search.value is what you need to manipulate or columns[i].search.value for specific column search