slush-marklogic-node
slush-marklogic-node copied to clipboard
Add dynamic date/dateTime selectors
Tied to issue #265
Very interesting stuff! Maybe worth pushing into ml-search itself? That would also allow adding specific support for those dateFilters inside ml-search, and prevent using additionalQueries.
That sounds good to me. @joemfb, what do you think? Do you think it makes sense to move into ml-search?
I think it'd be good to have the functionality in ml-search-ng, but I'm not sure exactly where it should go. I guess it wouldn't be too hard to bake it into the search controller prototype. Longer term, I'd like to change the way facets/constraints are handled in the search context, to better support these kinds of features.
Do you have a (rough) plan for how you'd integrate this feature?
I think you'd need:
- Support for operators on facet selections. The default would be EQ of course, but there should be an option to pass in NE, LT, LE, GT or GE too.
- Awareness of facet type perhaps, so that you can send in the selected value in the appropriate data format.
- An ml-facets template that considers the facet type, and responds to type date/dateTime by showing start/end pickers, connected with the right toggle/selectFacet callback to get the correct facet selection added to the list of filters..