<?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[Topics tagged with elasticsearch]]></title><description><![CDATA[A list of topics that have been tagged with elasticsearch]]></description><link>https://fusionauth.io/community/forum/tags/elasticsearch</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 14:26:45 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/tags/elasticsearch.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[Elastic documentation is pretty abismal. Has anyone found better packages or workarounds?]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2801">@admin-9</a> I'm sorry to hear you're frustrated.</p>
<p dir="auto">However, I don't know what you mean by a fleet server.</p>
<p dir="auto">You have a couple of options:</p>

you can test FusionAuth with the database search option, which doesn't require elasticsearch, but offers more limited search capabilities: <a href="https://fusionauth.io/docs/lifecycle/manage-users/search/search#using-the-database-search-engine" rel="nofollow ugc">https://fusionauth.io/docs/lifecycle/manage-users/search/search#using-the-database-search-engine</a>
you could use our docker compose examples which are preconfigured to work with opensearch or elasticsearch: <a href="https://fusionauth.io/docs/get-started/download-and-install/docker" rel="nofollow ugc">https://fusionauth.io/docs/get-started/download-and-install/docker</a>

<p dir="auto">If you can provide a few more details about what you are trying to accomplish, I might be able to offer more guidance.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2596/elastic-documentation-is-pretty-abismal-has-anyone-found-better-packages-or-workarounds</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/2596/elastic-documentation-is-pretty-abismal-has-anyone-found-better-packages-or-workarounds</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[After system reindex patching a user still returns SearchEngineRequestFailedException]]></title><description><![CDATA[<p dir="auto">If a user is still receiving a SearchEngineRequestFailedException after a system reindex and patching, there could be several reasons for this.</p>
<p dir="auto">Firstly, the issue may not have been related to the index or patching, but rather a problem with the user's search query or the way they are interacting with the system.</p>
<p dir="auto">Alternatively, it could be that the reindex and patching process did not fully resolve the underlying issue, and further investigation or troubleshooting is necessary.</p>
<p dir="auto">It's also possible that there are other technical or environmental factors at play that are causing the exception to continue occurring. In any case, it may be necessary to consult with technical support or seek out additional resources to diagnose and resolve the issue<a href="https://www.umrproviderportal.org/" rel="nofollow ugc">.</a></p>
]]></description><link>https://fusionauth.io/community/forum/topic/2368/after-system-reindex-patching-a-user-still-returns-searchenginerequestfailedexception</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/2368/after-system-reindex-patching-a-user-still-returns-searchenginerequestfailedexception</guid><dc:creator><![CDATA[croverw.norene8]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[See user and entity elasticsearch indexes when running in FusionAuth cloud]]></title><description><![CDATA[<p dir="auto">Elasticsearch access is not available for FusionAuth cloud deployments.</p>
<p dir="auto">I would recommend running FusionAuth locally, which should display similar results as your cloud deployment for how the user and the entities are mapped.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/1389/see-user-and-entity-elasticsearch-indexes-when-running-in-fusionauth-cloud</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/1389/see-user-and-entity-elasticsearch-indexes-when-running-in-fusionauth-cloud</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Searching for user by email address returns a lot more results than I&#x27;d expect]]></title><description><![CDATA[<p dir="auto">Hiya.</p>
<p dir="auto">You can see the elasticsearch query if you expand advanced in the UI.</p>
<p dir="auto">Because of the way that we tokenize the search string, it is likely that a query like user@example.com will match more than just the user with the email address you are entering.</p>
<p dir="auto">If you want to match only the email address in the UI, the easiest way to do it is to preface the query with email:. So email:user@example.com.</p>
<p dir="auto">Hope that helps.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/1247/searching-for-user-by-email-address-returns-a-lot-more-results-than-i-d-expect</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/1247/searching-for-user-by-email-address-returns-a-lot-more-results-than-i-d-expect</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[How can I see which fields are indexed?]]></title><description><![CDATA[<p dir="auto">We currently don't document these. Probably should; I'll put it on the list.</p>
<p dir="auto">Until then, you can find the indexed fields by querying elasticsearch:</p>
curl -XGET http://elasticsearchhost:port/fusionauth_user/_mapping

<p dir="auto">This will return something like the below JSON. This will vary based on your FusionAuth installation, however:</p>

  "fusionauth_user": {
    "mappings": {
      "_source": {
        "enabled": false
      },
      "properties": {
        "active": {
          "type": "boolean"
        },
        "birthDate": {
          "type": "date"
        },
        "breachedPasswordLastCheckedInstant": {
          "type": "long"
        },
        "breachedPasswordStatus": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "data": { 
        },
        "email": {
          "type": "text",
          "analyzer": "exact_lower",
          "fielddata": true
        },
        "fullName": {
          "type": "text",
          "fielddata": true
        },
        "id": {
          "type": "keyword"
        },
        "insertInstant": {
          "type": "date"
        },
        "lastLoginInstant": {
          "type": "date"
        },
        "lastUpdateInstant": {
          "type": "date"
        },
        "login": {
          "type": "keyword"
        },
        "memberships": {
          "type": "nested",
          "include_in_parent": true,
          "properties": {
            "data": {
              "type": "object"
            },
            "groupId": {
              "type": "keyword"
            },
            "id": {
              "type": "keyword"
            },
            "insertInstant": {
              "type": "date"
            },
            "userId": {
              "type": "keyword"
            }
          }
        },
        "mobilePhone": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "preferredLanguages": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "registrations": {
          "type": "nested",
          "include_in_parent": true,
          "properties": {
            "applicationId": {
              "type": "keyword"
            },
            "authenticationToken": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "data": {
            },
            "id": {
              "type": "keyword"
            },
            "insertInstant": {
              "type": "date"
            },
            "lastLoginInstant": {
              "type": "date"
            },
            "lastUpdateInstant": {
              "type": "date"
            },
            "preferredLanguages": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "roles": {
              "type": "keyword"
            },
            "tokens": {
              "properties": {
                "5ccff761-f809-49c7-a58c-27a3cb9ab650": {
                  "type": "text",
                  "fields": {
                    "keyword": {
                      "type": "keyword",
                      "ignore_above": 256
                    }
                  }
                },
                "84ef0274-70db-44da-8762-aa6bcfbd2981": {
                  "type": "text",
                  "fields": {
                    "keyword": {
                      "type": "keyword",
                      "ignore_above": 256
                    }
                  }
                },
                "Google": {
                  "type": "text",
                  "fields": {
                    "keyword": {
                      "type": "keyword",
                      "ignore_above": 256
                    }
                  }
                }
              }
            },
            "username": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "usernameStatus": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "verified": {
              "type": "boolean"
            }
          }
        },
        "tenantId": {
          "type": "keyword"
        },
        "timezone": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "username": {
          "type": "text",
          "fielddata": true
        },
        "verified": {
          "type": "boolean"
        }
      }
    }
  }
}

]]></description><link>https://fusionauth.io/community/forum/topic/1095/how-can-i-see-which-fields-are-indexed</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/1095/how-can-i-see-which-fields-are-indexed</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[How do I get more results than the default allowed by ElasticSearch?]]></title><description><![CDATA[<p dir="auto">You have a few options.</p>
Limit Query

One option is to find a way to limit your search by logical increments.  For example, if you are searching on users you may consider obtaining and appending results by first name in a loop.

<p dir="auto">As an example:</p>
for (letter in [a...z]) {
    query + " AND user email starts with $letter"
    // do work
}

Use Version &gt; 1.24.0 when pulling something like users
<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>
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.

]]></description><link>https://fusionauth.io/community/forum/topic/945/how-do-i-get-more-results-than-the-default-allowed-by-elasticsearch</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/945/how-do-i-get-more-results-than-the-default-allowed-by-elasticsearch</guid><dc:creator><![CDATA[joshua]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Added the wrong datatype to a user&#x27;s data field]]></title><description><![CDATA[<p dir="auto">This exception is caused by the fact that your objects in elastic now have two different schemas (one with the number, one with the string). You need to manually fix that; one way to proceed might be to access elastic directly and remove that one user.</p>
<p dir="auto">Then you'll need to reindex; here's more on that: <a href="https://fusionauth.io/docs/v1/tech/core-concepts/users/#reindex" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/core-concepts/users/#reindex</a></p>
]]></description><link>https://fusionauth.io/community/forum/topic/802/added-the-wrong-datatype-to-a-user-s-data-field</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/802/added-the-wrong-datatype-to-a-user-s-data-field</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Can you use the database search engine with millions of users?]]></title><description><![CDATA[<p dir="auto">I don't know of any issues. You’re mainly just giving up the ability to perform rich queries. The db search is a few LIKE statements.</p>
<p dir="auto">I don't think we've tested millions running db search - but the only issue I can think of for normal usage would be the User page in the UI since we’ll be paginating over lots of users.</p>
<p dir="auto">This should work ok - but pagination tends to slow way down as you get into higher pages,.</p>
<p dir="auto">One can always <a href="https://fusionauth.io/docs/v1/tech/tutorials/switch-search-engines/" rel="nofollow ugc">flip on Elastic and run an index</a>, so not much harm in trying it.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/771/can-you-use-the-database-search-engine-with-millions-of-users</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/771/can-you-use-the-database-search-engine-with-millions-of-users</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[&quot;missing search index&quot; error message on install]]></title><description><![CDATA[<p dir="auto">If this is a new install, this is expected. During startup, FusionAuth goes into maintenance mode and reports back on the state of the system.</p>
<p dir="auto">If you are in silent mode, the index will be created for you, if you are not in silent mode, FusionAuth will have entered an interactive startup mode and it is sitting on a prompt for you to create the Elasticsearch index.</p>
<p dir="auto"><a href="https://fusionauth.io/docs/v1/tech/guides/silent-mode/" rel="nofollow ugc">More on silent mode</a>.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/591/missing-search-index-error-message-on-install</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/591/missing-search-index-error-message-on-install</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Expand fields available for elasticsearch search engine]]></title><description><![CDATA[<p dir="auto">Not really, at least not through FusionAuth interfaces.</p>
<p dir="auto">If you have particular queries that aren’t working well, you can open an issue in GitHub or a support ticket: <a href="https://github.com/FusionAuth/fusionauth-issues/issues" rel="nofollow ugc">https://github.com/FusionAuth/fusionauth-issues/issues</a></p>
]]></description><link>https://fusionauth.io/community/forum/topic/399/expand-fields-available-for-elasticsearch-search-engine</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/399/expand-fields-available-for-elasticsearch-search-engine</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Any way to modify the elasticsearch index?]]></title><description><![CDATA[<p dir="auto">When you re-index, we delete our named index and rebuild it.</p>
<p dir="auto">You would probably be better off creating your own index.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/344/any-way-to-modify-the-elasticsearch-index</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/344/any-way-to-modify-the-elasticsearch-index</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[How can I find all users except one?]]></title><description><![CDATA[<p dir="auto">You can use the admin ui to build the query string.</p>
<p dir="auto">Definitely test it out with the search first, and then use the <a href="https://fusionauth.io/docs/v1/tech/apis/users#bulk-delete-users" rel="nofollow ugc">bulk delete api</a>.</p>
<p dir="auto">Here's a shell script that searches for all users except one:</p>
curl -vvv -XGET -H "Authorization: $API_KEY" 'http://localhost:9011/api/user/search/?queryString=NOT%20email:test%40example.com'

<p dir="auto">Note that I had to escape the space and the @ sign, but here's the elasticsearch query without the escaping: NOT email:test@example.com.</p>
<p dir="auto">Also, if you are using the database search engine, the syntax will be entirely different, as this example relies on the Elasticsearch syntax.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/273/how-can-i-find-all-users-except-one</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/273/how-can-i-find-all-users-except-one</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Mastering in Elasticsearch]]></title><description><![CDATA[<p dir="auto">I'd start at <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow ugc">https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html</a> and read the reference documentation.</p>
<p dir="auto">HTH.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/213/mastering-in-elasticsearch</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/213/mastering-in-elasticsearch</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[How can I protect my elasticsearch instances?]]></title><description><![CDATA[<p dir="auto">There are a few ways to do this.</p>
<p dir="auto">This assumes that you are running elasticsearch on a different server than you are running the fusionauth instances. If they are on the same server, you should be fine, as that is the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html" rel="nofollow ugc">default configuration</a>.</p>
<p dir="auto">The first is at the network level, using a firewall or something like security groups on AWS. If you are doing this, you can configure the server that elasticsearch is installed on to accept requests only from the server that FusionAuth is installed on.</p>
<p dir="auto">The second is to use basic authentication. That is, set fusionauth-search.servers in the fusionauth.properties file, or the FUSIONAUTH_SEARCH_SERVERS environment variable to include the basic username and password. <a href="https://user:password@example.com" rel="nofollow ugc">https://user:password@example.com</a>. And make sure to set up <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html" rel="nofollow ugc">elastic to use basic auth</a>, using whatever authentication source you'd like. (You could even go meta and have elasticsearch auth the user against the fusionauth instance 🙂 ).</p>
<p dir="auto"><a href="https://github.com/FusionAuth/fusionauth-issues/issues/531" rel="nofollow ugc">Further discussion here</a>.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/185/how-can-i-protect-my-elasticsearch-instances</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/185/how-can-i-protect-my-elasticsearch-instances</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[I&#x27;m having an issue with Elastic Search queries in FusionAuth.]]></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">/api/user/search</a> endpoint with the query 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>
curl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d'
  {            
     "query": {       
       "match_all": {}
     }
  }'

<p dir="auto">or, if you have the query stored in query.json</p>
curl -XPOST -H 'Content-type: application/json' "http://localhost:9021/_search" -d@query.json


]]></description><link>https://fusionauth.io/community/forum/topic/177/i-m-having-an-issue-with-elastic-search-queries-in-fusionauth</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/177/i-m-having-an-issue-with-elastic-search-queries-in-fusionauth</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[multi_match query?]]></title><description><![CDATA[<p dir="auto">It looks like multi match (at least as of 2019) doesn't support wildcards:</p>
<blockquote>
<p dir="auto">[a] multimatch query requires match queries as its internal queries. And a match query doesn't support wildcards.</p>
</blockquote>
<p dir="auto"><a href="https://discuss.elastic.co/t/query-with-multimatch-and-wildcard/189962" rel="nofollow ugc">https://discuss.elastic.co/t/query-with-multimatch-and-wildcard/189962</a></p>
<p dir="auto">Can you try with a non wildcard query?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/159/multi_match-query</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/159/multi_match-query</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[&quot;A request to the search index has failed. This error is unexpected.&quot;]]></title><description><![CDATA[<p dir="auto">Turns out that I didn't have much disk space.</p>
<p dir="auto">Saw this in the FA search logs:</p>
{"type": "server", "timestamp": "2020-06-10T14:34:28,378Z", "level": "WARN", "component": "o.e.c.r.a.DiskThresholdMonitor", "cluster.name": "FusionAuth", "node.name": "ubuntu-xenial", "message": "flood stage disk watermark [95%] exceeded on [NE_DhFssRru-H5oIiLwBjA][ubuntu-xenial][/usr/local/fusionauth/data/search/esv6/nodes/0] free: 887.9mb[4.4%], all indices on this node will be marked read-only", "cluster.uuid": "LGdaij30RrS4FZbgsT_6KA", "node.id": "NE_DhFssRru-H5oIiLwBjA"  }

<p dir="auto">Deleting some things from my hard drive lowered my disk usage below 95% and I no longer saw the message.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/151/a-request-to-the-search-index-has-failed-this-error-is-unexpected</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/151/a-request-to-the-search-index-has-failed-this-error-is-unexpected</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Do you support sig4 auth headers for AWS Elasticsearch?]]></title><description><![CDATA[<p dir="auto">If you are using <a href="https://aws.amazon.com/elasticsearch-service/" rel="nofollow ugc">https://aws.amazon.com/elasticsearch-service/</a> for your Elasticsearch server, you can access it via AWS APIs and use IAM to control access: <a href="https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-ac.html" rel="nofollow ugc">https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-ac.html</a></p>
<p dir="auto">However, FusionAuth doesn't currently support the AWS signature for Elasticsearch requests.</p>
<p dir="auto">The recommended way of securing such clusters is to place it in a private subnet and restricting traffic to it using a security group. More information: <a href="https://fusionauth.io/docs/v1/tech/installation-guide/securing#fusionauth-search" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/installation-guide/securing#fusionauth-search</a></p>
<p dir="auto">If you have to make it public to make it accessible to resources outside if AWS you could use a source IP lock, a VPN, basic auth if AWS supports it, or you could proxy the request perhaps to another endpoint that can build the AWS sig v4 header.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/141/do-you-support-sig4-auth-headers-for-aws-elasticsearch</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/141/do-you-support-sig4-auth-headers-for-aws-elasticsearch</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>