Trouble with search preference=_local

I have ES 1.0.2 and Lucene 4.6.

I was hoping preference=_local would query on the current node, but it does
not.

The same node comes up at the top of the list for all shards regardless of
which node I search from,
it is not the primary node, neither is it the local node.

I am testing this with the _search_shards API like this:

curl-XGET localhost:9200/2/_search_shards?preference=_local

The larger problem I am trying to solve is to restrict searches to a geo, we
are a two geo site
and don't want searches going across the WAN.

I have experimented with allocation awareness, also with mixed results,
searches
always go to the first zone, this might actually be workable since we are a
primary/DR
setup, but it is not behaving as documented so I am leery of relying on this
behavior.

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Trouble-with-search-preference-local-tp4063439.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1410550675399-4063439.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.