Hi Sunny, That is a known 'issue'. It is because search results are counted in so-called 'unfiltered' mode for performance reasons. It uses xdmp:estimate under the hood. Apparently you are doing a search that requires filtering of search results. Can you give some more details about your search query?
Kind regards, Geert > -----Oorspronkelijk bericht----- > Van: [email protected] [mailto:general- > [email protected]] Namens Sunny Wang01 > Verzonden: woensdag 9 mei 2012 9:40 > Aan: MarkLogic Developer Discussion > Onderwerp: [MarkLogic Dev General] The value of @total is not right > > Hi, > > Could you help to resolve the below issue? > > Using search:search in the Marklogic retrieve the search result, but the returned > value @total is sometimes bigger than the real count of search result, it makes > the pagination doesn't work correctly. > > Thanks, > Sunny Wang01 > > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely > for the use of the addressee(s). If you are not the intended recipient, please > notify the sender by e-mail and delete the original message. Further, you are not > to copy, disclose, or distribute this e-mail or its contents to any other person and > any such actions are unlawful. This e-mail may contain viruses. Infosys has taken > every reasonable precaution to minimize this risk, but is not liable for any > damage > you may sustain as a result of any virus in this e-mail. You should carry out your > own virus checks before opening the e-mail or attachment. Infosys reserves the > right to monitor and review the content of all messages sent to or from this e- > mail > address. Messages sent to or from this e-mail address may be stored on the > Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS*** > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
