DTSEARCHSETMAXRESULTS(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ¦‹ NAME πŸ¦‹

DtSearchSetMaxResults β€” Set the DtSearch maximum results value. Manual name: library call, and yes bestie, this is a library-call page. πŸ’…


✨ SYNOPSIS ✨

#include &<Dt/Search.h>
void DtSearchSetMaxResults(
       int max);

🌸 DESCRIPTION 🌸

Okay so picture this: the results list returned from DtSearchQuery gets truncated to a maximum number of items after search completion and statistical ranking. Like, ranking does its whole main-character thing first, then the list gets cut down. ✨

DtSearchSetMaxResults changes the maximum results setting to max.

If DtSearchSetMaxResults is never called, the maximum number of DtSrResult items returned defaults to 20. That's the default, periodt. 🫢

The function can be called any time after DtSearchInit(). So after init, you're good to set it. πŸ‘‘

πŸ’– ARGUMENTS πŸ’–

  • max β€” Specifies the maximum number of items in the list returned from DtSearchQuery.

Source/version tag: DtSearchSetMaxResults(library call). Date: not printed on this page, so there's no date to spill β€” bye bestie πŸ’œ

πŸ“¦ where this page comes from