Disable routing only for specific queries

Hello everyone,

I have a mapping where I defined a routing value and made it required. This
is all good, as I want all queries to define it, but now I have the need to
run a couple general queries at the whole index (I don´t want to provide a
routing, I want it to search across all documents everywhere), is there a
way for me to disable routing only for these special queries or do I have
to disable routing completely?

--
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/97a499e9-f514-423f-ba34-c0e8c516e701%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you do not use a routing value your query will search all shards by
default.

On 25 February 2015 at 01:00, Maurício Linhares <linhares.mauricio@gmail.com

wrote:

Hello everyone,

I have a mapping where I defined a routing value and made it required.
This is all good, as I want all queries to define it, but now I have the
need to run a couple general queries at the whole index (I don´t want to
provide a routing, I want it to search across all documents everywhere), is
there a way for me to disable routing only for these special queries or do
I have to disable routing completely?

--
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/97a499e9-f514-423f-ba34-c0e8c516e701%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/97a499e9-f514-423f-ba34-c0e8c516e701%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/CAEYi1X_A%2B-Qu%3DU%3D_4v3KunOP9%3D%3DxXLQYLXHe45fCGzh2E0v21Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.