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

Feature Request: Add support for float numbers in numeric TextFilter of DocumentModelFilter #82

Closed
Ali-RS opened this issue May 30, 2019 · 2 comments

Comments

@Ali-RS
Copy link
Contributor

Ali-RS commented May 30, 2019

No description provided.

@Ali-RS Ali-RS changed the title Feature Request: Add support for float numbers for numeric TextField Feature Request: Add support for float numbers in numeric TextField May 30, 2019
@Ali-RS Ali-RS changed the title Feature Request: Add support for float numbers in numeric TextField Feature Request: Add support for float numbers in numeric TextFilter of TextField May 30, 2019
@Ali-RS Ali-RS changed the title Feature Request: Add support for float numbers in numeric TextFilter of TextField Feature Request: Add support for float numbers in numeric TextFilter of DocumentModelFilter May 30, 2019
@pspeed42
Copy link
Contributor

pspeed42 commented Jul 2, 2020

Can you describe what you mean by this? Is it a limitation of the filtered document model or just the lack of an implementation?

...ie: is it possible for a user to implement their own or not?

@Ali-RS
Copy link
Contributor Author

Ali-RS commented Jul 2, 2020

Sorry, I forgot to close this.

...ie: is it possible for a user to implement their own or not?

Yes, I was able to implement my own filter for float numbers.

DocumentModelFilter doc = new DocumentModelFilter();
doc.setInputTransform(TextFilters.charFilter(Predicates.or(TextFilters.isDigit(), TextFilters.isInChars('.'))));

I think back then I did not know I can use custom filters! Anyway, I am closing this now.

@Ali-RS Ali-RS closed this as completed Jul 2, 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