lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Public Network Services <publicnetworkservi...@gmail.com>
Subject Re: Getting all field names in a Solr index via SolrJ
Date Fri, 10 Jun 2011 16:04:12 GMT
Sure, but how does the web admin do it without Luke?


On Fri, Jun 10, 2011 at 6:53 PM, Stefan Matheis <
matheis.stefan@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
> <publicnetworkservices@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!
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message