private Query GetShippingStatusQuery() { return(new BooleanQuery { { new TermQuery(new Term(FieldDefinition.GetFieldName <OrderSearchShippingStatusDefinition>(), ShippingStatus.ToString())), Occur.MUST } }); }
private string GetStatusTitle(ShippingStatus status) { switch (status) { case ShippingStatus.OutForDelivery: return("Out for Delivery"); case ShippingStatus.PickedUp: return("Picked up"); case ShippingStatus.ReceivedOrder: return("Received order"); default: return(status.ToString()); } }