Is there a way to sort by any of the other fields besides relevance and date?
Currently, the API docs only show relevance, date_asc and date_desc as the sortable fields. Can sorting be done by title or location?
Message edited by Alliance for a Healthier MN 15 years ago
active Admin
–
15 years ago
Only data and relevance sorting are supported at this time unfortunately.
Alliance for a Healthier MN
–
15 years ago
Ok. I will probably have to role my own sorting. Thank you.
Alliance for a Healthier MN
–
15 years ago
Actually. As I went through, I noticed it looks like there is a max result set on the active.com end capped at 100. Is there any way to get around that?
For instance, if my query's total results are 150, can I set the "num" variable to a number like 10000 to return all 150 results. Currently, if I do this it only returns a maximum of 100 results.
active Admin
–
15 years ago
You're correct, you can only get 100 results per "page". To get results 101 - 200, you'll have to specify "&page=2" in your query. You'll probably have to query a couple of pages worth of data before applying your custom sorting algorithm.
Is there a way to sort by any of the other fields besides relevance and date?
Currently, the API docs only show relevance, date_asc and date_desc as the sortable fields. Can sorting be done by title or location?
Message edited by Alliance for a Healthier MN 15 years ago
active Admin – 15 years ago
Only data and relevance sorting are supported at this time unfortunately.
Alliance for a Healthier MN – 15 years ago
Ok. I will probably have to role my own sorting. Thank you.
Alliance for a Healthier MN – 15 years ago
Actually. As I went through, I noticed it looks like there is a max result set on the active.com end capped at 100. Is there any way to get around that?
For instance, if my query's total results are 150, can I set the "num" variable to a number like 10000 to return all 150 results. Currently, if I do this it only returns a maximum of 100 results.
active Admin – 15 years ago
You're correct, you can only get 100 results per "page". To get results 101 - 200, you'll have to specify "&page=2" in your query. You'll probably have to query a couple of pages worth of data before applying your custom sorting algorithm.