Possible to change columns().search() from AND to OR search yet?

Possible to change columns().search() from AND to OR search yet?

timely_TMLEtimely_TMLE Posts: 1Questions: 1Answers: 0

Just wondering if there was an easy to way to specify some columns from a table and then OR search specified columns for a value. columns( [1,2,5]).search("fred").draw(); currently AND searches which doesn't retrieve the necessary rows for me at the moment

https://datatables.net/forums/discussion/40164/search-in-multiple-columns

This thread from 2017 suggested something like what I need would be possible in the future

Thank you for you time

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    This is an example that @kthorngren did for another thread that OR searches across multiple columns - this would be a good place to start.

    Colin

  • allanallan Posts: 61,716Questions: 1Answers: 10,108 Site admin

    Unfortunately my comment in the original thread is still the case. There are a number of threads on how to do OR based searching, but none quite as simple as the API cold make it.

    I've pingged Colin to ask him which thread he was looking at specifically.

    Allan

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Sorry, missed the link, here it is: http://live.datatables.net/mucevape/1/edit

This discussion has been closed.