I am trying to do conditional sorting by pulling the matcing field to search query first and then followed by other sort orders. I tried .OrderBy(x=>x.FieldName==queryParam) and also using .BoostMatching(x=>x.FieldName.AnyWordBeginsWith(queryParam),1) . Any one idea how we can achive this, appreciate any help!
I am trying to do conditional sorting by pulling the matcing field to search query first and then followed by other sort orders. I tried .OrderBy(x=>x.FieldName==queryParam) and also using .BoostMatching(x=>x.FieldName.AnyWordBeginsWith(queryParam),1) . Any one idea how we can achive this, appreciate any help!