<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How do I get more results than the default allowed by ElasticSearch?]]></title><description><![CDATA[<p dir="auto">How do I get more results than the default allowed by ElasticSearch? (10k, as of this question)?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/945/how-do-i-get-more-results-than-the-default-allowed-by-elasticsearch</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 13:53:35 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/945.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Apr 2021 16:37:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do I get more results than the default allowed by ElasticSearch? on Tue, 13 Apr 2021 16:45:03 GMT]]></title><description><![CDATA[<p dir="auto">You have a few options.</p>
<h3>Limit Query</h3>
<ol>
<li>One option is to find a way to limit your search by logical increments.  For example, if you are searching on <code>users</code> you may consider obtaining and appending results by first name in a loop.</li>
</ol>
<p dir="auto">As an example:</p>
<pre><code class="language-javascript">for (letter in [a...z]) {
    query + " AND user email starts with $letter"
    // do work
}
</code></pre>
<h3>Use Version <code>&gt;</code> 1.24.0 when pulling something like <code>users</code></h3>
<p dir="auto"><a href="https://fusionauth.io/docs/v1/tech/apis/users/#request-parameters-12" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/apis/users/#request-parameters-12</a></p>
<pre><code class="language-plain">Request Parameters
accurateTotal [Boolean] OPTIONAL Defaults to false AVAILABLE SINCE 1.24.0
Set this value equal to true to receive an accurate hit count on the API response.

By default the search engine will limit the hit count to 10,000 users. This means that even if your query may match more than 10,000 users, the returned total count will be 10,000. This is adequate for many use cases such as pagination and general purpose queries. If you are looking for an accurate user count that can exceed 10,000 matches, you will want to set this value equal to true.
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/2797</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2797</guid><dc:creator><![CDATA[joshua]]></dc:creator><pubDate>Tue, 13 Apr 2021 16:45:03 GMT</pubDate></item></channel></rss>