<?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[Searching for users with the java client]]></title><description><![CDATA[<p dir="auto">Hello, with the Java client we are searching Users in FusionAuth that are in a specific Group, using the method client.searchUsersByQuery(). We currently use Elasticsearch as search engine, but it seems to be slow even with the local install (270 Groups, 500 Users in total). So we would like to compare performance to using the database search engine (PosgreSQL).</p>
<p dir="auto">Although this search request (Users in a Group) does not require a JSON request body but can be handled via URL parameters (queryString), the Java client still calls the user search API with a JSON request body.</p>
<p dir="auto">The docs state that advanced queries via a JSON request body are not possible with the database search engine. My question is if it is possible to use the Java client for user search without JSON request body, but only queryString as URL parameter? Since I could not find this in the docs or Java code, I am asking here.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/850/searching-for-users-with-the-java-client</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 03:43:38 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/850.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Mar 2021 14:40:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Searching for users with the java client on Fri, 05 Mar 2021 14:41:23 GMT]]></title><description><![CDATA[<p dir="auto">Looking at <a href="https://github.com/FusionAuth/fusionauth-java-client/blob/master/src/main/java/io/fusionauth/client/FusionAuthClient.java#L3256" rel="nofollow ugc">https://github.com/FusionAuth/fusionauth-java-client/blob/master/src/main/java/io/fusionauth/client/FusionAuthClient.java#L3256</a></p>
<p dir="auto">It appears there is no way to search using the Java client that uses a <code>GET</code>, only a <code>POST</code>. However, you can still provide the <code>queryString</code> in the JSON and it will be equivalent to the <code>GET</code> request.</p>
<p dir="auto">Building this JSON:</p>
<pre><code>{
  "search": {
    "queryString": "fusionauth.io"
  }
}
</code></pre>
<p dir="auto">Is equivalent to <code>queryString=fusionauth.io</code>.</p>
<p dir="auto">Hope that helps.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2540</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2540</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 05 Mar 2021 14:41:23 GMT</pubDate></item></channel></rss>