Get available fields in index

Hello, community,

I want to get the available fields from an index, like taking the last 500 documents and returning a list of non-null fields.

thanks.
Screenshot 2024-02-12 181020