On Tue, Jun 7, 2011 at 10:57 AM, Ryan McKinley <[email protected]> wrote:
> With the DocTransformer stuff in place, we should be able to return
> the shard info with the documents. (like SOLR-705)
>
> I see two options:
> 1. Each server adds its own ID to the documents -- I like this
> approach, but (as far as i can tell) the shards don't really know
> their ID (or that they are in a distributed request).  To support
> this, we could pass a parameter like &shard.id=localhost:9877  along
> with the request

Shards currently know that they are in a distrib request via isShard=true
I originally favored #2 (the controlling server adds the ID), but
thinking about it again, I'm starting to lean toward your #1.
If/when we move to micro-sharding (keeping multiple indexes around so
we can rebalance easily), a distrib request should state what parts of
the index it is requesting from the server.

-Yonik
http://www.lucidimagination.com


> 2. The controlling server adds the ID to documents as they are
> returned from the shards.  This is kinda messy, but avoids passing an
> extra parameter.
>
> thoughts?
>
> ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to