title: Conditional Sorting in ElasticSearch
body: <p>I have some documents that I would like to sort on a date field. For documents with date equal to a specified date, example today, and all dates after that I would like to sort ascending. For dates before the specified date I would like to sort in descending order. </p>
  
  <p>Is this possible in ElasticSearch? If so could you suggest any literature or an approach. </p>
  
  <p>date is of type "date" and format "dateOptionalTime".</p>
  
  <p>Thanks</p>