Another option is to use the TermsComponent that will give you the list as well.

Be aware of one thing, with either suggestion you get the _terms_ in the index,
_after_ all the tokenizing and filtering. You do not get exactly what
you input. For
instance, if your original input was "Organism" and your field lower-cased and
stemmed, you'd get  "organ" (or similar) back.

Best
Erick

On Thu, Jun 20, 2013 at 8:42 AM, Erik Hatcher <erik.hatc...@gmail.com> wrote:
> David -
>
> This is effectively faceting.  If you want to see all cat values across all 
> documents, do /select?q=*:*&rows=0&facet=on&facet.field=cat and you'll get 
> what you're looking for.
>
>         Erik
>
> On Jun 20, 2013, at 11:35 , It-forum wrote:
>
>> Hello,
>>
>> I'm looking to retreive all distinct values of a specific field.
>>
>> My documents have field like :
>> id
>> name
>> cat
>> ref
>> model
>> brand
>>
>> I wich to be able to retreive all cat distinct values.
>>
>> How could I do that with Solr, I'm totally block
>>
>> Please help
>>
>> Regards
>>
>> David
>

Reply via email to