SrchSetM.sgm 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!-- $XConsortium: dtsrsmrs.sgm 1996 -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.SEARCH.DtSearchSetMaxResults">]]>
  10. <refmeta>
  11. <refentrytitle>DtSearchSetMaxResults</refentrytitle>
  12. <manvolnum>library call</manvolnum>
  13. </refmeta>
  14. <refnamediv><refname><function>DtSearchSetMaxResults</function></refname>
  15. <refpurpose>Set the DtSearch maximum results value
  16. </refpurpose>
  17. </refnamediv>
  18. <refsynopsisdiv>
  19. <funcsynopsis>
  20. <funcsynopsisinfo>#include &lt;Dt/Search.h></funcsynopsisinfo>
  21. <funcdef>void <function>DtSearchSetMaxResults</function></funcdef>
  22. <paramdef>int <parameter>max</parameter></paramdef>
  23. </funcsynopsis>
  24. </refsynopsisdiv><refsect1>
  25. <title>DESCRIPTION</title>
  26. <para>The results list returned from <function>DtSearchQuery</function> will
  27. be truncated to a maximum number of items after search completion and
  28. statistical ranking. <function>DtSearchSetMaxResults</function> changes
  29. the maximum results setting to <symbol role="variable">max</symbol>.
  30. </para>
  31. <para>If <function>DtSearchSetMaxResults</function> is never called, the
  32. maximum number of DtSrResult items returned will default to 20.
  33. </para>
  34. <para>The function can be called any time after
  35. <function>DtSearchInit()</function>.
  36. </para>
  37. </refsect1><refsect1>
  38. <title>ARGUMENTS</title>
  39. <variablelist>
  40. <varlistentry><term><symbol role="Variable">max</symbol></term>
  41. <listitem>
  42. <para>Specifies the maximum number of items in the list returned from
  43. <function>DtSearchQuery</function>.
  44. </para>
  45. </listitem>
  46. </varlistentry>
  47. </variablelist>
  48. </refsect1>
  49. <refsect1>
  50. <title>RELATED</title>
  51. <para>&cdeman.DtSrAPI;,
  52. &cdeman.DtSearchGetMaxResults;,
  53. &cdeman.DtSearchQuery;
  54. </para>
  55. </refsect1></refentry>