You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we need something that is not possible for now I think, it is a way to look for elements 30 days before a date and 30 days after. For now you may query 30 days before or 30 days after now but not in the interval.
Something like lessAndMoreThanRelativeDate in addition to existing _lessThanRelativeDate and _moreThanRelativeDate operators.
To enter value I would like to ease things by just setting one value (like "30") using this value for before/after, or a notation like 20:40 if we need different values for before and after.
Does that seem receivable, any hints or remarks?
Thank you,
Gauthier
The text was updated successfully, but these errors were encountered:
So what we intend to do is to search "30 days before now until 30 days after now".
As far as I see, this is not possible for now.
Instead adding a new widget that manages "from... to..." date, that would be nice to have some special handling when several configuration is defined for a single index. For now it overwrite existing value, but what would be nice is to be able to use this :
It would be nice that the resulting query takes care of the 2 operators.
There is already some special handling for "path" index in queryparser.parseFormquery, I would add there some special handling for relativeDate operators.
What do you think? What is the best way to handle this?
This sounds like a variant of the current 'between dates' query. So I would copy and adapt the _betweenDates query parser and integrate that.
If you want to, you could start with a single value, making the query between X days before and X days after now, and see if you can get that to work. Once this works, you can try X days before and Y days after.
But note that if you first do one single value and want to have this merged, and then work on expanding it to two values if a future PR, then this may require a migration.
But then: if you allow one value as input, but already store it as a double value, then migration should not be needed.
Hi everybody,
we need something that is not possible for now I think, it is a way to look for elements 30 days before a date and 30 days after. For now you may query 30 days before or 30 days after now but not in the interval.
Something like
lessAndMoreThanRelativeDate
in addition to existing_lessThanRelativeDate
and_moreThanRelativeDate
operators.To enter value I would like to ease things by just setting one value (like "30") using this value for before/after, or a notation like 20:40 if we need different values for before and after.
Does that seem receivable, any hints or remarks?
Thank you,
Gauthier
The text was updated successfully, but these errors were encountered: