Files
doc-exports/docs/css/umn/css_02_0125.html
zhengxiu 2125539080 css umn 25.1.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: zhengxiu <zhengxiu@huawei.com>
Co-committed-by: zhengxiu <zhengxiu@huawei.com>
2025-07-04 09:10:17 +00:00

26 lines
1.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="css_02_0125"></a><a name="css_02_0125"></a>
<h1 class="topictitle1">How Do I Change the Maximum Number of Results Returned for Searches to an Index in an Elasticsearch Cluster of CSS?</h1>
<div id="body0000001475272121"><div class="section" id="css_02_0125__section1036514129449"><h4 class="sectiontitle">Solution</h4><ul id="css_02_0125__ul988111322518"><li id="css_02_0125__li1089161312256">Method 1<p id="css_02_0125__p3641146448"><a name="css_02_0125__li1089161312256"></a><a name="li1089161312256"></a>Open Kibana and run the following commands on the <strong id="css_02_0125__b16124134312329">DevTools</strong> page:</p>
<pre class="screen" id="css_02_0125__screen161933218442">PUT _all/_settings?preserve_existing=true
{
"index.max_result_window" : "10000000"
}</pre>
</li><li id="css_02_0125__li1045391592510">Method 2<p id="css_02_0125__p724916521585"><a name="css_02_0125__li1045391592510"></a><a name="li1045391592510"></a>Run the following command on a server (a non-security mode cluster is used as an example here):</p>
<pre class="screen" id="css_02_0125__screen105772714417">curl -k XPUT 'http://localhost:9200/_all/_setting?preserve_existing=true'-d
{
"index.max_result_window":"1000000"
}</pre>
<p id="css_02_0125__p1136825171016"><span class="parmname" id="css_02_0125__parmname196555151013"><b>localhost</b></span> indicates the address of the Elasticsearch cluster.</p>
</li></ul>
</div>
<div class="caution" id="css_02_0125__note1865515379449"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="css_02_0125__p1365533794415">This configuration consumes memory and CPU resources. Exercise caution when setting this parameter.</p>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0055.html">Using CSS Cluster Search Engines</a></div>
</div>
</div>