Jörg

Sorry, but I don't quite understand what you're saying.
as I've read in the docs, "routing" is a per-document value elasticsearch
uses to determine which shard that document should be into. That way, if
two documents share the same routing value, we can be certain they'll be
allocated in the same shard. AFAIK, that's the only thing that can be taken
for sure. (If two documents have different routing values, it does not mean
the'll end up in different shards).

On the other hand, I can associate an alias with and index name and a
routing value. That means, for instance, that if I use an alias with a
routing value , I can be certain that search operation will go straight to
the same shards to where all documents with that routing value were indexed.

However, when I want to separate indexing from searching, the shards in the
"indexing zone" and in the "searching zone" should contain the same data. I
guess the primary shards being all located in the indexing zone and the
replica shards in the searching zone. I honestly can't see what the routing
values have to do with this. A routing value only determines which shard a
document is going to be located, and that will be the same whether it's a
primary or a replica. I mean, if I search for something in a three-sharded
index with 1 replica with the routing value "A" which corresponds to the
first shard, *both* the first of the primaries shards and the first of the
replica shards would comply with that condition. I see no way of
"directing" search request to only the replica shards and the "index"
request to only the main shards using routing and aliases.

Also, the doc in here
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-allocation.htmlallows
me to specify in which nodes I want certain indexes shards to be
located in, but, again, I can't see how I can use that to "separate" index
and searching.


That being said, I know there has to be a way.(In fact, in
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.htmlthey
talk about "indexing" and "searching" aliases), but I just can't see.
If anyone would enlighten me I would really appreciate that.


txs!


On Thu, Feb 6, 2014 at 2:57 AM, [email protected] <[email protected]
> wrote:

> Moving shards around is expensive and fiddling with this is no fun at all
> except you have no updates.
>
> You can separate index and search with index alias and routing
>
>
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-allocation.html
>
> so only dedicated nodes can index data, while other nodes have another
> index in the alias for search.
>
> Jörg
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "elasticsearch" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elasticsearch/ZDCtIWACqE4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGG%2BxSVWBjAD%2BgbjZY%2B8q9D8SzopK64Y4oHGGnRMkxWEw%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
uh, oh <http://www.youtube.com/watch?v=GMD_T7ICL0o>.

<http://www.defectivebydesign.org/no-drm-in-html5>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAKNaH0UKw8hc%3DZVYD6%3DpoRFMzqDO_JuKkUKQhhkCkC4GADm%3DfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to