Forum Discussion
Salut Sylvain,
Can you explain a bit more what you are trying to do?
1) Do you want to combine the result of both searches and then show those combined results using pagination?
or
2) Do you want to paginate in both search results seperately?
Generally with the "page_size" parameter of the API call you are specifying how many result items you want to have (per page of the pagination) while the "page" parameter tells the API which page to return.
Example:
If you want to get the results from result item 30 onwards your could do either of these:
...page_size=30&page=2 ...page_size=10&page=4
The second part of your question I don't know the answer for either. Would be interesting to know what difference between the f, q and phrase parameters actually is and how the one_or_more parameter influences the result? @Lithium_devs
Hi Claudius,
1) Do you want to combine the result of both searches and then show those combined results using pagination?
yes, i wish to search in 2 forums and paginate the result.
by example,
nbResultByPage = 10
/restapi/vc/categories/id/forum1/search/messages/?q=test > return 12 results
/restapi/vc/categories/id/forum2/search/messages/?q=test > return 20 results
i with to get this result
PAGE 1 : 0-10 of forum1
PAGE 2 : 11-12 of forum1 + 0-8 of forum2
PAGE 3 : 9-19 of forum2
PAGE 4 : 20 of forum2
i have tried to use :
/restapi/vc/categories/id/forum1/id/forum2/search/messages/?q=test
but this does not work.
"The second part of your question I don't know the answer for either. Would be interesting to know what difference between the f, q and phrase parameters actually is and how the one_or_more parameter influences the result? @Lithium_devs"
yes what is the difference between this parameters and what is the influence of one_or_more parameter ?
Related Content
- 2 years ago
- 11 months ago
- 13 years agoInactive User
- 13 years ago