Hi, 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? Of course I can use the HITSPERPAGE parameter, set it to thousand and split the hits into different pages in the PHP code but it would be easier to let Omega do the splitting for me. Is this possible? Thanks, Floris
On Tue, 2005-09-06 at 22:05 +0200, Floris Bos wrote:> Hi, > > 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? > > Of course I can use the HITSPERPAGE parameter, set it to thousand and split > the hits into different pages in the PHP code but it would be easier to let > Omega do the splitting for me. Is this possible?I think yes: how about setting TOPDOC to the first document you want to display? Hint: xapian/xapian-applications/omega/doc/cgiparams.txt HtH RalfD> Thanks, > > Floris > > > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss@lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss
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