Hi... I would like to get a list of all field names in a Solr index, much like the web admin can list all these fields in Schema Browser. It sounds trivial, but still looking around as to how it would best be implemented.
If I run a query with the wildcard string ("*:*"), not all field names are included in all returned documents (rows), so I have to retrieve several rows (i.e., a SolrDocumentList) and then iterate over all these rows (documents) and use the getFieldNames() method on each. This is a hack and does not produce 100% reliable results (e.g., how many rows to retrieve in order to get all the field names?). So, how is this properly done? Thanks!