On 1/11/07, Tracey Jaquith <[EMAIL PROTECTED]> wrote:
The Internet Archive is getting close to going live with Solr.
I have two remaining classes of problems.
1) across the entire index, enumerate all the unique values for a given field.
2) we use unrestricted dynamicField additions from documents. (that is our
users are free to add any named field they like to their document's data (which
is metadata for their item)). we want to list all the unique field names in
the index.
Reasonable requests, they both seem like they would be useful additions to Solr.
I've considered doing (1) in the past, adding the doc frequency of each term.
Relying on the schema for (2) is slightly ambiguous.
Do you want a) all the fields defined by the schema, or b) all the
fields actually in the index (which may exclude some fields in the
schema if not used, but also include any dynamic fields in use).
For 2.b, we could use IndexReader.getFieldNames()
-Yonik