You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Gajjar, Jigar" <ga...@oclc.org> on 2020/05/19 19:58:09 UTC
Getting terms in descending order
Hello,
We have requirement to get terms using ascending and descending order.
We are using qt=/terms but this only gives terms in ascending order if I set terms.sort=index
Is there a way or workound to get terms in descending order.
We are also providing terms.lower and terms.upper to restrict data.
Thanks,
Jigar Gajjar
Re: Getting terms in descending order
Posted by Erick Erickson <er...@gmail.com>.
In a word, “no”. The Terms component is intended
to look forward through the terms list.
You could always specify terms.limit=-1 and only display
the last N of the returned list, but the list may be very long.
Best,
Erick
> On May 19, 2020, at 3:58 PM, Gajjar, Jigar <ga...@oclc.org> wrote:
>
> Hello,
>
> We have requirement to get terms using ascending and descending order.
> We are using qt=/terms but this only gives terms in ascending order if I set terms.sort=index
>
> Is there a way or workound to get terms in descending order.
>
> We are also providing terms.lower and terms.upper to restrict data.
>
>
> Thanks,
> Jigar Gajjar