#community-help

Prioritizing Parameters in Query Search

TLDR Andrew asked if prioritization was possible in query parameters and Jason confirmed it's based on the order of input.

Powered by Struct AI

1

Jan 07, 2023 (11 months ago)
Andrew
Photo of md5-7766f890de99fa72a6d81315691a6758
Andrew
04:40 PM
I have this query by parameter:

'query_by': 'handle, name, fraternity',

when i search for a user, is there a way i can prioritize these? Such as matches of handle will return before than matches of fraternity?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:04 PM
The order you list in query_by is indeed the priority order of fields

1