# Search on multiple types

**URL:** <https://discuss.elastic.co/t/search-on-multiple-types/7173>\
**Category:** Elasticsearch\
**Created:** [March 29, 2012, 4:09pm UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173 "2012-03-29T16:09:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [March 29, 2012, 4:09pm UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173/1 "2012-03-29T16:09:25Z")

</div>

Hi,

I'm doing a search request on several types, like  
/myIndex/user,space,post/\_search

I got different results depending on the order of the types.

/myIndex/user,space,post/\_search does not give the same  
than /myIndex/space,post,user/\_search

Any idea ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 29, 2012, 4:27pm UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173/2 "2012-03-29T16:27:18Z")

</div>

Do you mean "not the same content" or "not in the same order" ?

David

Le 29 mars 2012 à 18:09, Alexandre Heimburger [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) a écrit :

> Hi,
> 
> I'm doing a search request on several types, like /myIndex/user,space,post/\_search
> 
> I got different results depending on the order of the types.
> 
> /myIndex/user,space,post/\_search does not give the same than /myIndex/space,post,user/\_search
> 
> Any idea ?

---

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [March 29, 2012, 5:14pm UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173/3 "2012-03-29T17:14:40Z")

</div>

both actually.. Sometimes, an order gives no result.

On Thu, Mar 29, 2012 at 6:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Do you mean "not the same content" or "not in the same order" ?
> 
> David
> 
> Le 29 mars 2012 à 18:09, Alexandre Heimburger [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
> a écrit :
> 
> > Hi,
> > 
> > I'm doing a search request on several types, like  
> > /myIndex/user,space,post/\_search
> > 
> > I got different results depending on the order of the types.
> > 
> > /myIndex/user,space,post/\_search does not give the same than  
> > /myIndex/space,post,user/\_search
> > 
> > Any idea ?

## -- Alexandre Heimburger VP Engineering blueKiwi Software tel : +33687880997 email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) adress : 93 rue Vieille du Temple, 75003 Paris

blueKiwi is the innovation leader in Enterprise Social Software. Our  
solutions enable enterprises worldwide to engage and interact with their  
internal and external social networks in multiple business domains.  
blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
provider since 2007.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 29, 2012, 5:24pm UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173/4 "2012-03-29T17:24:33Z")

</div>

And I suppose that you don’t see anything in logs ???

De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] De la part de Alexandre Heimburger  
Envoyé : jeudi 29 mars 2012 19:15  
À : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
Objet : Re: Search on multiple types

both actually.. Sometimes, an order gives no result.

On Thu, Mar 29, 2012 at 6:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Do you mean "not the same content" or "not in the same order" ?

David

Le 29 mars 2012 à 18:09, Alexandre Heimburger [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) a écrit :

> Hi,
> 
> I'm doing a search request on several types, like /myIndex/user,space,post/\_search
> 
> I got different results depending on the order of the types.
> 
> /myIndex/user,space,post/\_search does not give the same than /myIndex/space,post,user/\_search
> 
> Any idea ?

--  
Alexandre Heimburger  
VP Engineering  
blueKiwi Software  
tel : +33687880997  
email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
adress : 93 rue Vieille du Temple, 75003 Paris

* * *

blueKiwi is the innovation leader in Enterprise Social Software. Our solutions enable enterprises worldwide to engage and interact with their internal and external social networks in multiple business domains. blueKiwi has been consistently recognized by Gartner Inc. as a visionary provider since 2007.

---

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [March 29, 2012, 8:37pm UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173/5 "2012-03-29T20:37:43Z")

</div>

yes ☹

On Thu, Mar 29, 2012 at 7:24 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> And I suppose that you don’t see anything in logs ???\*\*\*\*
> 
> * * *
> 
> _De :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [mailto:  
> [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] _De la part de_ Alexandre Heimburger  
> _Envoyé :_ jeudi 29 mars 2012 19:15  
> _À :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> _Objet :_ Re: Search on multiple types\*\*\*\*
> 
> * * *
> 
> both actually.. Sometimes, an order gives no result. \*\*\*\*
> 
> On Thu, Mar 29, 2012 at 6:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:\*\*\*\*
> 
> Do you mean "not the same content" or "not in the same order" ?
> 
> David
> 
> Le 29 mars 2012 à 18:09, Alexandre Heimburger [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
> a écrit :\*\*\*\*
> 
> > Hi,
> > 
> > I'm doing a search request on several types, like  
> > /myIndex/user,space,post/\_search
> > 
> > I got different results depending on the order of the types.
> > 
> > /myIndex/user,space,post/\_search does not give the same than  
> > /myIndex/space,post,user/\_search
> > 
> > Any idea ?\*\*\*\*
> 
> * * *
> 
> * * *
> 
> --  
> Alexandre Heimburger  
> VP Engineering  
> blueKiwi Software  
> tel : +33687880997  
> email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
> adress : 93 rue Vieille du Temple, 75003 Paris\*\*\*\*
> 
> * * *
> 
> * * *
> 
> blueKiwi is the innovation leader in Enterprise Social Software. Our  
> solutions enable enterprises worldwide to engage and interact with their  
> internal and external social networks in multiple business domains.  
> blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
> provider since 2007.\*\*\*\*
> 
> * * *

## -- Alexandre Heimburger VP Engineering blueKiwi Software tel : +33687880997 email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) adress : 93 rue Vieille du Temple, 75003 Paris

blueKiwi is the innovation leader in Enterprise Social Software. Our  
solutions enable enterprises worldwide to engage and interact with their  
internal and external social networks in multiple business domains.  
blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
provider since 2007.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 31, 2012, 8:44pm UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173/6 "2012-03-31T20:44:40Z")

</div>

The order you specify it means the order the filtering based on the types  
will be applied. Order between docs with the same sort values (score  
by default) is not guaranteed.

On Thu, Mar 29, 2012 at 10:37 PM, Alexandre Heimburger \<  
[ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)\> wrote:

> yes ☹
> 
> On Thu, Mar 29, 2012 at 7:24 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > And I suppose that you don’t see anything in logs ???\*\*\*\*
> > 
> > * * *
> > 
> > _De :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [mailto:  
> > [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] _De la part de_ Alexandre Heimburger  
> > _Envoyé :_ jeudi 29 mars 2012 19:15  
> > _À :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> > _Objet :_ Re: Search on multiple types\*\*\*\*
> > 
> > * * *
> > 
> > both actually.. Sometimes, an order gives no result. \*\*\*\*
> > 
> > On Thu, Mar 29, 2012 at 6:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:\*\*\*  
> > \*
> > 
> > Do you mean "not the same content" or "not in the same order" ?
> > 
> > David
> > 
> > Le 29 mars 2012 à 18:09, Alexandre Heimburger [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
> > a écrit :\*\*\*\*
> > 
> > > Hi,
> > > 
> > > I'm doing a search request on several types, like  
> > > /myIndex/user,space,post/\_search
> > > 
> > > I got different results depending on the order of the types.
> > > 
> > > /myIndex/user,space,post/\_search does not give the same than  
> > > /myIndex/space,post,user/\_search
> > > 
> > > Any idea ?\*\*\*\*
> > 
> > * * *
> > 
> > * * *
> > 
> > --  
> > Alexandre Heimburger  
> > VP Engineering  
> > blueKiwi Software  
> > tel : +33687880997  
> > email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
> > adress : 93 rue Vieille du Temple, 75003 Paris\*\*\*\*
> > 
> > * * *
> > 
> > * * *
> > 
> > blueKiwi is the innovation leader in Enterprise Social Software. Our  
> > solutions enable enterprises worldwide to engage and interact with their  
> > internal and external social networks in multiple business domains.  
> > blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
> > provider since 2007.\*\*\*\*
> > 
> > * * *
> 
> --  
> Alexandre Heimburger  
> VP Engineering  
> blueKiwi Software  
> tel : +33687880997  
> email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com)  
> adress : 93 rue Vieille du Temple, 75003 Paris
> 
> * * *
> 
> blueKiwi is the innovation leader in Enterprise Social Software. Our  
> solutions enable enterprises worldwide to engage and interact with their  
> internal and external social networks in multiple business domains.  
> blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
> provider since 2007.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:34am UTC](https://discuss.elastic.co/t/search-on-multiple-types/7173/7 "2017-07-06T03:34:05Z")

</div>


