Multi-index queries: ordering of results

Hi,

until at least ES 0.90.2, it appears that multi-index searches would
reliably sort/group results in the order of the indices given. At list for
filtered queries, which we've been using for a while. I've now switched to
0.90.6 and this seems not to be the case any more. (Granted, it was never
specified anywhere AFAIK.)

Is there any way to ensure a sorting order based on the index order given
in the query, short of issuing separate single-index queries from the
client?

Thanks,

Klaus

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Are you sure it was working as you described in 0.90.2?

Do you have any curl recreation we can replay on both versions?

That said, I guess you could perhaps add a sort on _index field in addition to _score? I 've never tested it though.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 8 nov. 2013 à 10:11, Klaus Brunner klaus.brunner@gmail.com a écrit :

Hi,

until at least ES 0.90.2, it appears that multi-index searches would reliably sort/group results in the order of the indices given. At list for filtered queries, which we've been using for a while. I've now switched to 0.90.6 and this seems not to be the case any more. (Granted, it was never specified anywhere AFAIK.)

Is there any way to ensure a sorting order based on the index order given in the query, short of issuing separate single-index queries from the client?

Thanks,

Klaus

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

On Friday, 8 November 2013 11:46:32 UTC+1, David Pilato wrote:

Are you sure it was working as you described in 0.90.2?

Yes, we have a unit test in place to check for this behaviour.

Do you have any curl recreation we can replay on both versions?

I'll see that I provide one.

Thanks,

Klaus

--
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.
For more options, visit https://groups.google.com/groups/opt_out.