Search: *does not contain*
Search: *does not contain*
tonydd
Posts: 2Questions: 1Answers: 0
Hi!
I'm thinking of starting to use Datatables for my online store's stock level UI.
I'd like to know whether Datatables supports an easy way to search both something that the item name should and should not contain.
I.e. Search for "nike"&"adidas" but does not contain "shoes"&"bag".
If this is possible, how does one achieve it?
Best regards,
Tony
This discussion has been closed.
Answers
My best guess would be to look at the search api with regex options, and build the regex such that you can implement the 'not contains' logic,
i.e. users could type +nike +adidas -shoes -bag in the search box and you'd process that string input.