Explicitly running an optimize on the index via the admin screens solved
this problem - the correct counts are now being returned.

On Tue, May 22, 2012 at 4:33 PM, Mike Hugo <m...@piragua.com> wrote:

> We're testing a snapshot of Solr4 and I'm looking at some of the responses
> from the Luke request handler.  Everything looks good so far, with the
> exception of the "distinct" attribute which (in Solr3) shows me the
> distinct number of terms for a given field.
>
> Given the request below, I'm consistently getting a response back with a
> value in the "distinct" field of -1.  Is there something different I need
> to do to get back the actual distinct count?
>
> Thanks!
>
> Mike
>
> http://localhost:8080/solr/core1/admin/luke?wt=json&fl=label&numTerms=1
>
> "fields": {
> "label": {
> "type": "text_general",
> "schema": "IT-M----------",
> "index": "(unstored field)",
> "docs": 63887,
> *"distinct": -1,*
> "topTerms": [
>

Reply via email to