Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Provide before and after filter for java.util.Date #50

Closed
tkurz opened this issue Aug 10, 2018 · 0 comments
Closed

Provide before and after filter for java.util.Date #50

tkurz opened this issue Aug 10, 2018 · 0 comments
Assignees
Milestone

Comments

@tkurz
Copy link
Contributor

tkurz commented Aug 10, 2018

Please add methods similar to

com.rbmhtechnology.searchlib.api.query.filter.Filter.after(String, ZonedDateTime)
com.rbmhtechnology.searchlib.api.query.filter.Filter.before(String, ZonedDateTime)
to be used with java.util.Date.

It would be easy to convert the Date to a ZonedDateTime outside the search lib. However, since it provides a Field Descriptor to handle java.util.Data (com.rbmhtechnology.searchlib.model.SingleValueFieldDescriptor.UtilDateFieldDescriptor) this conversion should be done by the search lib in that case to be sure the conversion is done in a consistent way.

@alfonso-noriega alfonso-noriega self-assigned this Aug 17, 2018
@alfonso-noriega alfonso-noriega added this to the 1.2.2 milestone Aug 17, 2018
tkurz added a commit that referenced this issue Aug 20, 2018
…er_filter_for_java.util.Date

#50: Added functionality methods to create filters with Date util.
@tkurz tkurz closed this as completed Aug 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants