On 1/11/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:
Writing a more generic "Stats" request handler that does what you're
describing certianly seems like a good idea.

Hmmm, I hadn't thought of it as a separate handler, but as long as
these types of requests aren't related to a base query, and not needed
along with every query, I guess that could make sense.

 Attempting to enumerating
all of the values for a field could be dangerous

We do it for faceting :-)  But we don't drag it all into memory at once...

but an API where the
clienc specifies a starting term and a number of terms and we use the
TermEnum.seek() would be fairly straight forward.

Adding a start and end (like a range query) is a great idea!
Additionally, I think adding support to incrementally write all the
terms to the response might be important... loading them all into
memory doesn't seem like a great idea.

Perhaps adding Iterator or Iterable to the list of supported types in
TextWriter would be a nice general way to go.

-Yonik

Reply via email to