This my error :
"Page contains invalid option: size; must be an integer",
"Page contains invalid option: current; must be an integer"
how to can i to fix this error help me please
This my error :
"Page contains invalid option: size; must be an integer",
"Page contains invalid option: current; must be an integer"
how to can i to fix this error help me please
Hi @Ricky_Tokdis.
The search payload should be set as a request body, not as query parameters. Examples can be found here: https://swiftype.com/documentation/app-search/api/search/filters
Just out of curiosity: did you find some docs saying that query parameters, as you're using, would also work?
i am using query parameter, if i not use page in query parameter it can be work it
You're right - unfortunately the search endpoint does not currently fully support query parameters for all options. So you would need to create a JSON request body, as seen in the documentation page I previously linked to.
okay sir, thank you very much to your response
now in my endpoint, i am request method GET and send parameter to request body ?
Yes, GET request with a JSON body would work but some HTTP libraries might not support that. So a POST request would be the option I would go with.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.