data table search use AND instead of OR

data table search use AND instead of OR

visceralistvisceralist Posts: 33Questions: 0Answers: 0
edited December 2013 in General
hi there.

I am wondering how can I override the default search functionality in data tables to use AND when typing two keywords instead of OR.

thank you

Replies

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    edited December 2013
    I'm not sure, but have you tried chaining two "->where(...)" statements?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you link us to the page in question please (as noted in the forum rules)? DataTables does do AND filtering by default, not OR, so there is something else going on here.

    Allan
  • visceralistvisceralist Posts: 33Questions: 0Answers: 0
    hey thank you for the responses and my apologies for that implicit ignoring of the rules. I couldn't post a screenshot/sample because it is behind a company wall and can't be accessed.

    I hhave now learned that there are other pages where the filtering works just fine on the basis of AND. the pages where datatables do OR filtering have been manually tweaked to have OR filtering instead of the (default) AND.

    I just need to know where do I put that back from OR to default AND.
    cheers,
This discussion has been closed.