Can you show us the options you passed into each? On a quick glance, I think the issue has to do with filtering but it's hard to tell from what's here.
________________________________ From: [email protected] [[email protected]] on behalf of Girish Kulkarni [[email protected]] Sent: Monday, December 16, 2013 4:47 PM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Rest APi count vs search:resolve I am making a REST api call something like... http://localhost:8600/v1/search?q=p0301&..... I am passing the options as a huge strucured query. The result shows me total=9 and actual results returned are only 7. <search:response xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="" xmlns:search="http://marklogic.com/appservices/search" snippet-format="my-snippet" total="9" start="1" page-length="20"> Whereas when i pass in the same structured query in search:resolve with the same query parameters i see total=7 and the actual result count is also 7 and the results match as the ones in the REST api... <search:response snippet-format="my-snippet" total="7" start="1" page-length="10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="" xmlns:search="http://marklogic.com/appservices/search"> What is causing the REST api to give me a false total number ? Thanks, Girish Kulkarni
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
