London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi Kenny,
Yeah it does sound easy but i dont think it is using the Find API!
To make it work - you probably need to modify your LowestPrice() convention to hard set a very high hardcoded price in the Find index for zero priced products. The orderingby Lowest Price woudl then have these at the end of the result. That would meet your requirement although it is not tidy.
Thanks
I'm returning search results ordered by price. I've been asked to move everything with a price of zero to the end of the results. I know this should be easy but I seem to be missing how to accomplish this. Any suggestions?
public static ITypeSearch<ICommunitySearch> OrderByLowestPrice(this ITypeSearch<ICommunitySearch> search) { search = search.OrderBy(i => i.LowestPrice()); return search; }