<?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[I&#x27;m having an issue with Elastic Search queries in FusionAuth.]]></title><description><![CDATA[<p dir="auto">What is the best way to debug them?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/177/i-m-having-an-issue-with-elastic-search-queries-in-fusionauth</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 10:40:59 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/177.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Jun 2020 19:29:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I&#x27;m having an issue with Elastic Search queries in FusionAuth. on Fri, 19 Jun 2020 19:37:23 GMT]]></title><description><![CDATA[<p dir="auto">It depends on the issue, but there are two things you can do. Note that FusionAuth typically sends the query you post to the <a href="https://fusionauth.io/docs/v1/tech/apis/users#search-for-users" rel="nofollow ugc"><code>/api/user/search</code></a> endpoint with the <code>query</code> parameter straight through to Elasticsearch</p>
<p dir="auto">First, ensure you are running elasticsearch and not the database search engine.</p>
<p dir="auto">Then, for some queries you can see the generate ElasticSearch query strings by clicking on the 'advanced' option in the user search area of the admin UI. This can be helpful.</p>
<p dir="auto">Finally, try running the query directly against elasticsearch and seeing if it works. Here are examples which will pull back all the data in your elasticsearch cluster (beware!).</p>
<pre><code>curl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d'
  {            
     "query": {       
       "match_all": {}
     }
  }'
</code></pre>
<p dir="auto">or, if you have the query stored in <code>query.json</code></p>
<pre><code>curl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d@query.json
</code></pre>
<pre><code></code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/439</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/439</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 19 Jun 2020 19:37:23 GMT</pubDate></item></channel></rss>