How can I search for some documents by a specific ...
# community-help
r
How can I search for some documents by a specific keyword and have documents with a specific value for a field be more important (rank higher) than the rest? For example we are searching users but want to prioritize the badge verified ones
j
@Robert Preoteasa If you set verified as an integer, you can then use it in the sort_by parameter like this: sort_by: verifieddesc, text matchdesc
r
When does ‘per_page’ limit apply? Before or after documents are sorted?
j
After
r
thanks
Can you 
sort_by
 something like 
field1:32:desc
? Meaning the value 32 for that field would be rank 1, if it was found based on the query/keyword?
j
No it's not possible to do that. You're referring to what's called "optional filtering" which we plan to support in the future
Could you create a Github issue for this?
r
thanks for letting me know