Hi Dhivya, Yes, the search is executed each time anew, but you don't need to worry about performance. The search library already utilizes all available indexes (of which some the most common ones are activated by default). In short, the indexes are used to retrieve a list of matching document id's. Pagination occurs next and only to retrieve the actual content to display the search results, the real documents are retrieved from the database.
Kind regards, Geert > drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 P Please consider the environment before printing this mail. De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > dhivya vijayakumar > Sent: donderdag 11 februari 2010 19:56 > To: General Mark Logic Developer Discussion > Subject: [MarkLogic Dev General] search:search clarification > > hi team, > > I would like to know how the search:search() pagination works? > for example if i am searching for "dhivya" in the content it > returns me 25 results. > > if i am executing a query for the first time > search:search( "dhivya" , 1 , 5) first five matching result > > for the second time search:search( "dhivya" , 6 , 5) then > next five matches. > > questions > > 1.will this search:search executes the query every time to > fetch the results based on the start and page-length? > > 2. is it possible to execute the search once and index the > search result for pagination? > > i don't want to execute the search many times with the > different page-length and start instead i want to execute the > search once and index the result for pagination is it possible? > > > > waiting for the reply, > > with regards, > > Dhivya.v > > > > > > > > > > > > > > > > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
