Can we sort search result with type?

Well I have an Index which contains three types as type1,type2,type3 with
same fields and then I search on the whole index with search queries .I
want the result to come ordered with type 1 come first then type 2 and
then type3.How can we do it in elasticsearch.

Did you try to order by _type ?

David.

Le 18 juin 2012 à 10:53, jajoria abhishek jajoria.abhishek@gmail.com a écrit :

Well I have an Index which contains three types as type1,type2,type3 with same
fields and then I search on the whole index with search queries .I want the
result to come ordered with type 1 come first then type 2 and then type3.How
can we do it in elasticsearch.

--
David Pilato
http://dev.david.pilato.fr/
Twitter : @dadoonet

Is it possible to order by _ type? well could you give me the syntax to
write it

On Mon, Jun 18, 2012 at 2:35 PM, David Pilato david@pilato.fr wrote:

**

Did you try to order by _type ?

David.

Le 18 juin 2012 à 10:53, jajoria abhishek jajoria.abhishek@gmail.com a
écrit :

Well I have an Index which contains three types as type1,type2,type3
with same fields and then I search on the whole index with search queries
.I want the result to come ordered with type 1 come first then type 2 and
then type3.How can we do it in elasticsearch.

--
David Pilato
http://dev.david.pilato.fr/
Twitter : @dadoonet

I got it sir thanks for your effort

On Mon, Jun 18, 2012 at 3:32 PM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

Is it possible to order by _ type? well could you give me the syntax to
write it

On Mon, Jun 18, 2012 at 2:35 PM, David Pilato david@pilato.fr wrote:

**

Did you try to order by _type ?

David.

Le 18 juin 2012 à 10:53, jajoria abhishek jajoria.abhishek@gmail.com a
écrit :

Well I have an Index which contains three types as type1,type2,type3
with same fields and then I search on the whole index with search queries
.I want the result to come ordered with type 1 come first then type 2 and
then type3.How can we do it in elasticsearch.

--
David Pilato
http://dev.david.pilato.fr/
Twitter : @dadoonet