Typesense-readme-5.py
· 224 B · Python
Orginalformat
search_parameters = {
'q' : 'stork',
'query_by' : 'company_name',
'filter_by' : 'num_employees:>100',
'sort_by' : 'num_employees:desc'
}
client.collections['companies'].documents.search(search_parameters)
1 | search_parameters = { |
2 | 'q' : 'stork', |
3 | 'query_by' : 'company_name', |
4 | 'filter_by' : 'num_employees:>100', |
5 | 'sort_by' : 'num_employees:desc' |
6 | } |
7 | |
8 | client.collections['companies'].documents.search(search_parameters) |