<?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 can I see which fields are indexed?]]></title><description><![CDATA[<p dir="auto">I am using the elasticsearch search engine and want to query the user on a field like <code>expiry</code>. I am not seeing any results when I search on that field.</p>
<p dir="auto">How can I determine which fields of the user are indexed in elasticsearch?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/1095/how-can-i-see-which-fields-are-indexed</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 17:24:17 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/1095.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jun 2021 17:21:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I see which fields are indexed? on Thu, 17 Jun 2021 17:25:51 GMT]]></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>
<pre><code>curl -XGET http://elasticsearchhost:port/fusionauth_user/_mapping
</code></pre>
<p dir="auto">This will return something like the below JSON. This will vary based on your FusionAuth installation, however:</p>
<pre><code>
  "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"
        }
      }
    }
  }
}
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/3243</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/3243</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 17 Jun 2021 17:25:51 GMT</pubDate></item></channel></rss>