[Xapian-discuss] Requesting second page using xml
Olly Betts
olly at survex.com
Tue Sep 6 21:16:28 BST 2005
On Tue, Sep 06, 2005 at 10:05:18PM +0200, Floris Bos wrote:
> I hope you don't mind but I've got another question. I'm using PHP to call
> omega to generate XML. When I do this I get the first page of results with
> 10 results. Of course I want the visitor to be able to view all the search
> results. Therefore I'd like to know if it is possible to directly request
> the second page of results from Omega. I don't see any possibilities for
> this when I look at the cgi parameters but is there some other solution to
> this?
Use the CGI parameter TOPDOC. Pass TOPDOC=10 to see the second page of
hits, etc.
Or you can make use of the CGI parameters < and > (value unimportant)
for next and previous page (relative to TOPDOC), or pass #=2 for page 2.
See the section "Display parameters and navigation" here:
http://svn.xapian.org/*checkout*/trunk/xapian-applications/omega/docs/cgiparams.txt
Cheers,
Olly
More information about the Xapian-discuss
mailing list