lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Matheis <>
Subject Re: Getting all field names in a Solr index via SolrJ
Date Fri, 10 Jun 2011 15:53:18 GMT
If you really want to have _all_ defined (and therefore possible
fields) you should have a look to


On Fri, Jun 10, 2011 at 5:48 PM, Public Network Services
<> wrote:
> 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!

View raw message