Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

TypeSearch not able to do conditional sorting

Vote:
 

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!

#301187
May 04, 2023 22:03
Vote:
 

I can't really figure your query

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

#301351
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.