Well, completeListSize *is* part of the definition of the xsd types used in the WSDL (as an optional element) but was in fact never implemented. The reason it's there in the first place is that the "resume find objects" operation was modeled after OAI-PMH's flow control, which defines a similar, optional element:
http://www.openarchives.org/OAI/openarchivesprotocol.html#FlowControl The idea at the time was that if people want to pay the performance cost of the repository providing this info for each search request (cost = an extra SQL query to count the results before actually returning them), we could provide it as a repository-wide option down the road without changing the schema. But these days I'm not so sure making it a *repository-wide* option is really a good idea (nor do I believe in speculative schema elements...). A per-request option seems better, so you'd only have to pay the cost (which could be significant) when you really need to. It's probably worth a little reminder at this point that FieldSearch is not intended to be a full-featured search interface to a Fedora repository; if you want scalable, user-facing search capabilities, the right way to do it is to plug in a "real" search service (gsearch, straight solr, blacklight, etc) that's designed for that purpose. Also, for people who want to get basic counts of things without actually pulling all the results across the network, another option to look into (which works today) is risearch's "count" capability (a feature contributed by Ben O'Steen a while back): For any RDF query, if you specify the result format as "count", a small text/plain document will be returned with the number of results the given query would return. For example, to count all triples: http://localhost:8080/fedora/risearch?type=triples&lang=spo&format=count&query=*+*+* ...or to count all content model objects: http://localhost:8080/fedora/risearch?type=triples&lang=spo&format=count&query=*+%3Cfedora-model%3AhasModel%3E+%3Cinfo%3Afedora%2Ffedora-system%3AContentModel-3.0%3E - Chris On Fri, Jan 21, 2011 at 5:36 AM, Steve Bayliss <stephen.bayl...@acuityunlimited.net> wrote: > If this was present in Fedora 2.2, we should maybe treat this as a > regression bug introduced in 3.x? It would seem useful to include the total > number of results for paging, as suggested. > > completeListSize is in the WSDL for the response to findObjects. But is not > actually returned by the SOAP API-A method. > > Steve > >> -----Original Message----- >> From: Riccardo Valzorio [mailto:valzo...@cilea.it] >> Sent: 17 January 2011 15:33 >> To: Support and info exchange list for Fedora users. >> Subject: Re: [fcrepo-user] get total result from findObjects restapi >> >> >> Hello, >> >> is not possible to get that number via API-A. You could try >> to get it by querying the db (if necessary). >> >> API-A-Lite will be soon deprecated - use /object instead of /search . >> >> R >> >> >> On 15/gen/2011, at 15.59, markux wrote: >> >> > >> > Hello everybody, >> > >> > I've installed fedora 3.4.1 and I've tried to query with /search and >> > /objects method url. They works very well, but I need to >> paginate results. >> > >> > I can get more results with resumeFindObjects, but it never return >> > completeListSize param like this example >> > >> > https://wiki.duraspace.org/display/FR22DOC/API-A-Lite+findObjects >> > >> > Is it possible with version 3.4.1? >> > >> > thanks >> > -- >> > View this message in context: >> http://fedora-commons.1317035.n2.nabble.com/get-total-result-f > rom-findObjects-restapi-tp5924823p5924823.html >> Sent from the Fedora Commons Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users