Hi Mike, The tutorial has an example for pagination. But I need to build a query which will pick all the documents that have "/metadata/author" as John and have the text "fruit" any where in the document.
Currently I am checking all the documents that have "/metadata/author" as John and then filtering out the documents that the word fruit. But this will be performance issue because I will need only a page size of results but I will have to search all the documents. Thanks Pradeep -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michael Blakeley Sent: Tuesday, February 24, 2009 12:32 PM To: Pradeep Maddireddy; General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] search multiple paths http://developer.marklogic.com/howto/tutorials/2006-09-paginated-search. xqy -- Mike On 2009-02-23 11:33, Pradeep Maddireddy wrote: > Hi..! > > > > I will be storing multiple XML documents in the database with the > following structure > > > > <wrapper> > > <metadata> > > <author>John</author> > > <publisher>John</ publisher> > > </metadata> > > > > <original-content> > > <item> > > <Category>fruit</Category> > > <name>Apple</name> > > </item> > > <item> > > <Category>fruit</Category> > > <name>Orange</name> > > </item> > > <item> > > <Category>flower</Category> > > <name>Jasmine</name> > > </item> > > </original-content> > > > > </wrapper> > > > > The "metadata" node structure will be same for all documents but the > "original-content" node structure can be different in different > documents. > > How can we build a query which will pick all the documents that have > "/metadata/author" as John and have the text "fruit" any where in the > document. > > > > I also have to handle pagination in the same query. > > > > Thanks in advance. > > > > Regards, > > Pradeep Maddireddy > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
