Try our conversational search powered by Generative AI!

TypeSearch not able to do conditional sorting


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!

May 04, 2023 22:03

I can't really figure your query

For that to work queryParam needs to be the exact same as the FieldName

May 08, 2023 7:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.