You may be able to use faceting for this.
Use facet.method=enum - it will be more efficient for this specific use.

The main problem is that you can't specify a start term for faceting
though (you can only use numeric offset / limit into the list).

To do more will require either adding some terms component features to
faceting, or faceting features to terms component.

-Yonik
http://www.lucidimagination.com

On Tue, Jan 19, 2010 at 3:14 PM, Naomi Dushay <ndus...@stanford.edu> wrote:
> I have a field that has millions of values, and I need to get "the next X
> values" in alpha order.  The terms component works fabulously for this.
>
> Here is a cooked up example of the terms
>
> a
> b
> f
> q
> r
> rr
> rrr
> y
> z
> zzz
>
> So if I ask for the 3 terms after "r", I get "rr", "rrr" and "y".
>
> But now I'd like to apply a filter query on a different field.  After the
> filter, my terms might be:
>
> b
> q
> r
> y
> z
> zzz
>
> So the 3 terms after "r", given the filter, become  "y" "z" and "zzz"
>
> Given that I have millions of terms, and they are not predictable for range
> queries ... how can I get
>
> "the next X values" of my field
> after one or more filters are applied?
>
> - Naomi
>

Reply via email to