I was trying to implement pagination using solr query, but not working properly from CQL solr. Please advise me, i am new to Cassandra and solr.
I am using cqlsh 5.0.1 | Cassandra 3.0.10.1443 | DSE 5.0.4 | CQL spec 3.4.0
1) select country_id,country_name from rptavlview.country where solr_query='{"q":":","start":"1"}' limit 5;
when i tried with the above query, i am getting error as below
InvalidRequest: Error from server: code=2200 [Invalid query] message="You have driver paging active which also activates Solr deep pagination. The 'start' parameter is not allowed. Please either deactivate paging or read about Solr deep paging restrictions and fix accordingly."
2) select country_id,country_name from rptavlview.country where solr_query='{"q":":","start":"1","rows":"5"}';
InvalidRequest: Error from server: code=2200 [Invalid query] message="Unsupported query parameter: rows"
When i tried from solr it worked
http://MYIPADDRESS:8983/solr/rptavlview.country/select?q=%3A&start=1&rows=5&wt=json&indent=true
"response": {
"numFound": 237,
"start": 1,
"docs": [
{
"_uniqueKey": "[\"49\",\"Christmas Island\"]",
"country_name": "Christmas Island",
"country_name_ar": "جزيرة كريسماس ",
"country_id": "49"
},
{
"_uniqueKey": "[\"51\",\"Colombia\"]",
"country_name": "Colombia",
"country_name_ar": "كولمبيا",
"country_id": "51"
},
{
"_uniqueKey": "[\"56\",\"Cuba\"]",
"country_name": "Cuba",
"country_name_ar": "كوبا",
"country_id": "56"
},
{
"_uniqueKey": "[\"57\",\"Cyprus\"]",
"country_name": "Cyprus",
"country_name_ar": "قبرص ",
"country_id": "57"
},
{
"_uniqueKey": "[\"59\",\"Democratic Republic of the Congo\"]",
"country_name": "Democratic Republic of the Congo",
"country_name_ar": "جمهورية الكونغو الديمقراطية",
"country_id": "59"
}
]
}
}
why pagination is not working with my CQL solr query ?