Sure, but how does the web admin do it without Luke?
On Fri, Jun 10, 2011 at 6:53 PM, Stefan Matheis < matheis.ste...@googlemail.com> wrote: > If you really want to have _all_ defined (and therefore possible > fields) you should have a look to > http://wiki.apache.org/solr/LukeRequestHandler > > Regards > Stefan > > On Fri, Jun 10, 2011 at 5:48 PM, Public Network Services > <publicnetworkservi...@gmail.com> 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! > > >