Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTables Search? #22

Open
nanawel opened this issue May 27, 2020 · 2 comments
Open

DataTables Search? #22

nanawel opened this issue May 27, 2020 · 2 comments

Comments

@nanawel
Copy link

nanawel commented May 27, 2020

It seems searching using DataTables "Search" field is not supported with MongoDB documents. Am I right?
Currently on my application, using this field immediately empties the table.

I've found this which might indicate so:

// @TODO - maybe allow pattern searches some day: new \MongoRegex('/.*'.$value.'.*/')

I suppose the alternative would be to use filter/sort/search on the client side using the appropriate config directive, but it's not possible with large collections.

@mmucklo
Copy link
Owner

mmucklo commented Jul 8, 2020

@nanawel,

I can look into adding regex if you're still interested.

@nanawel
Copy link
Author

nanawel commented Jul 9, 2020

Hi @mmucklo. Thanks for your proposal. But in the meantime I had to leave MongoDB and switch to SQLite as I encountered too many problems and limitations with it.
I've turned to https://github.com/omines/datatables-bundle to handle the grids and it's working quite well.

@nanawel nanawel mentioned this issue Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants