slush-marklogic-node icon indicating copy to clipboard operation
slush-marklogic-node copied to clipboard

Add dynamic date/dateTime selectors

Open ryanjdew opened this issue 9 years ago • 4 comments

Tied to issue #265

ryanjdew avatar Nov 11 '15 17:11 ryanjdew

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.

grtjn avatar Nov 12 '15 20:11 grtjn

That sounds good to me. @joemfb, what do you think? Do you think it makes sense to move into ml-search?

ryanjdew avatar Nov 23 '15 16:11 ryanjdew

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?

joemfb avatar Nov 23 '15 20:11 joemfb

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..

grtjn avatar Jan 29 '16 14:01 grtjn