jbox-web / ajax-datatables-rails

A wrapper around DataTable's ajax methods that allow synchronization with server-side pagination in a Rails app
MIT License
587 stars 228 forks source link

Disable smart search #404

Open letiesperon opened 2 years ago

letiesperon commented 2 years ago

Hi! I noticed searching by multiple words, triggers a query that searches by each of the individual words (smart search). https://github.com/jbox-web/ajax-datatables-rails/blob/b79f3bfc78142516583616e66a37004c7d98fdd4/lib/ajax-datatables-rails/orm/active_record.rb#L55

I couldn't find any way to disable this behaviour for a specific column Overriding the method global_search_delimiter in my Datatable class works, but I was hoping there was a way of doing it in a per-column basis.

Thank you