# TypeMissingException: type\[\_all\] missing

**URL:** <https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300>\
**Category:** Elasticsearch\
**Created:** [January 6, 2012, 4:42pm UTC](https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300 "2012-01-06T16:42:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Marr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richard_marr/32/2601_2.png) [@Richard\_Marr](https://discuss.elastic.co/u/Richard_Marr)\
**Post date:** [January 6, 2012, 4:42pm UTC](https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300/1 "2012-01-06T16:42:10Z")

</div>

Hi all,

Has anyone come across this kind of exception before? I'm getting this when  
running the automated tests for the node\_elastical project, but I can also  
repeat it in my browser.

org.elasticsearch.indices.TypeMissingException: [elastical-test-bulk]  
type[\_all] missing  
at  
org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:101)  
at  
org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:65)  
at  
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction$1.run(TransportShardSingleOperationAction.java:137)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:680)

and via a browser:

[http://localhost:9200/elastical-test-bulk/post/bar](http://localhost:9200/elastical-test-bulk/post/bar)

- returns - {"\_index":"elastical-test-bulk","\_type":"post","\_id":"bar","\_version":14,  
"\_source" : {"c":"c","d":"d"}}

[http://localhost:9200/elastical-test-bulk/\_all/bar](http://localhost:9200/elastical-test-bulk/_all/bar)

- returns - {"error":"TypeMissingException[[elastical-test-bulk]  
type[\_all] missing]","status":404}

I'm running ElasticSearch Version: 0.16.1 (2011-05-12T17:19:28), JVM:  
17.1-b03-307

--  
Richard Marr

---

<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:** [January 6, 2012, 7:06pm UTC](https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300/2 "2012-01-06T19:06:35Z")

</div>

You can't do a get for a document with \_all types. You can do a search and  
use the ids query without a type.

On Fri, Jan 6, 2012 at 6:42 PM, Richard Marr [richard.marr@gmail.com](mailto:richard.marr@gmail.com) wrote:

> Hi all,
> 
> Has anyone come across this kind of exception before? I'm getting this  
> when running the automated tests for the node\_elastical project, but I can  
> also repeat it in my browser.
> 
> org.elasticsearch.indices.TypeMissingException: [elastical-test-bulk]  
> type[\_all] missing  
> at  
> org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:101)  
> at  
> org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:65)  
> at  
> org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction$1.run(TransportShardSingleOperationAction.java:137)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:680)
> 
> and via a browser:
> 
> [http://localhost:9200/elastical-test-bulk/post/bar](http://localhost:9200/elastical-test-bulk/post/bar)
> 
> - returns - {"\_index":"elastical-test-bulk","\_type":"post","\_id":"bar","\_version":14,  
> "\_source" : {"c":"c","d":"d"}}
> 
> [http://localhost:9200/elastical-test-bulk/\_all/bar](http://localhost:9200/elastical-test-bulk/_all/bar)
> 
> - returns - {"error":"TypeMissingException[[elastical-test-bulk]  
> type[\_all] missing]","status":404}
> 
> I'm running Elasticsearch Version: 0.16.1 (2011-05-12T17:19:28), JVM:  
> 17.1-b03-307
> 
> --  
> Richard Marr

---

<div class="post-metadata">

**Author:** ![Richard\_Marr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richard_marr/32/2601_2.png) [@Richard\_Marr](https://discuss.elastic.co/u/Richard_Marr)\
**Post date:** [January 7, 2012, 9:31am UTC](https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300/3 "2012-01-07T09:31:24Z")

</div>

Do you mean I can't do it in that version of ES?

The node-elastical package uses 'get' in that way and has been tested with  
ES from 0.17.6 to 0.18.6. The docs also suggest that swapping the type for  
"\_all" is accepted.

I'll try upgrading.

On 6 January 2012 19:06, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> You can't do a get for a document with \_all types. You can do a search and  
> use the ids query without a type.
> 
> On Fri, Jan 6, 2012 at 6:42 PM, Richard Marr [richard.marr@gmail.com](mailto:richard.marr@gmail.com)wrote:
> 
> > Hi all,
> > 
> > Has anyone come across this kind of exception before? I'm getting this  
> > when running the automated tests for the node\_elastical project, but I can  
> > also repeat it in my browser.
> > 
> > org.elasticsearch.indices.TypeMissingException: [elastical-test-bulk]  
> > type[\_all] missing  
> > at  
> > org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:101)  
> > at  
> > org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:65)  
> > at  
> > org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction$1.run(TransportShardSingleOperationAction.java:137)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> > at java.lang.Thread.run(Thread.java:680)
> > 
> > and via a browser:
> > 
> > [http://localhost:9200/elastical-test-bulk/post/bar](http://localhost:9200/elastical-test-bulk/post/bar)
> > 
> > - returns - {"\_index":"elastical-test-bulk","\_type":"post","\_id":"bar","\_version":14,  
> > "\_source" : {"c":"c","d":"d"}}
> > 
> > [http://localhost:9200/elastical-test-bulk/\_all/bar](http://localhost:9200/elastical-test-bulk/_all/bar)
> > 
> > - returns - {"error":"TypeMissingException[[elastical-test-bulk]  
> > type[\_all] missing]","status":404}
> > 
> > I'm running Elasticsearch Version: 0.16.1 (2011-05-12T17:19:28), JVM:  
> > 17.1-b03-307
> > 
> > --  
> > Richard Marr

--  
Richard Marr

---

<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:** [January 7, 2012, 7:41pm UTC](https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300/4 "2012-01-07T19:41:51Z")

</div>

Yes, \_all will work, but it will only return the first doc match. For  
example, if you have type1/1 and type2/1, then one of those will be  
returned when using \_all.

On Sat, Jan 7, 2012 at 11:31 AM, Richard Marr [richard.marr@gmail.com](mailto:richard.marr@gmail.com)wrote:

> Do you mean I can't do it in that version of ES?
> 
> The node-elastical package uses 'get' in that way and has been tested with  
> ES from 0.17.6 to 0.18.6. The docs also suggest that swapping the type for  
> "\_all" is accepted.
> 
> I'll try upgrading.
> 
> On 6 January 2012 19:06, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > You can't do a get for a document with \_all types. You can do a search  
> > and use the ids query without a type.
> > 
> > On Fri, Jan 6, 2012 at 6:42 PM, Richard Marr [richard.marr@gmail.com](mailto:richard.marr@gmail.com)wrote:
> > 
> > > Hi all,
> > > 
> > > Has anyone come across this kind of exception before? I'm getting this  
> > > when running the automated tests for the node\_elastical project, but I can  
> > > also repeat it in my browser.
> > > 
> > > org.elasticsearch.indices.TypeMissingException: [elastical-test-bulk]  
> > > type[\_all] missing  
> > > at  
> > > org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:101)  
> > > at  
> > > org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:65)  
> > > at  
> > > org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction$1.run(TransportShardSingleOperationAction.java:137)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> > > at java.lang.Thread.run(Thread.java:680)
> > > 
> > > and via a browser:
> > > 
> > > [http://localhost:9200/elastical-test-bulk/post/bar](http://localhost:9200/elastical-test-bulk/post/bar)
> > > 
> > > - returns - {"\_index":"elastical-test-bulk","\_type":"post","\_id":"bar","\_version":14,  
> > > "\_source" : {"c":"c","d":"d"}}
> > > 
> > > [http://localhost:9200/elastical-test-bulk/\_all/bar](http://localhost:9200/elastical-test-bulk/_all/bar)
> > > 
> > > - returns - {"error":"TypeMissingException[[elastical-test-bulk]  
> > > type[\_all] missing]","status":404}
> > > 
> > > I'm running Elasticsearch Version: 0.16.1 (2011-05-12T17:19:28), JVM:  
> > > 17.1-b03-307
> > > 
> > > --  
> > > Richard Marr
> 
> --  
> Richard Marr

---

<div class="post-metadata">

**Author:** ![Richard\_Marr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richard_marr/32/2601_2.png) [@Richard\_Marr](https://discuss.elastic.co/u/Richard_Marr)\
**Post date:** [January 9, 2012, 12:40pm UTC](https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300/5 "2012-01-09T12:40:19Z")

</div>

That's worth knowing. Thanks.

On 7 January 2012 19:41, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Yes, \_all will work, but it will only return the first doc match. For  
> example, if you have type1/1 and type2/1, then one of those will be  
> returned when using \_all.
> 
> On Sat, Jan 7, 2012 at 11:31 AM, Richard Marr [richard.marr@gmail.com](mailto:richard.marr@gmail.com)wrote:
> 
> > Do you mean I can't do it in that version of ES?
> > 
> > The node-elastical package uses 'get' in that way and has been  
> > tested with ES from 0.17.6 to 0.18.6. The docs also suggest that swapping  
> > the type for "\_all" is accepted.
> > 
> > I'll try upgrading.
> > 
> > On 6 January 2012 19:06, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > You can't do a get for a document with \_all types. You can do a search  
> > > and use the ids query without a type.
> > > 
> > > On Fri, Jan 6, 2012 at 6:42 PM, Richard Marr [richard.marr@gmail.com](mailto:richard.marr@gmail.com)wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > Has anyone come across this kind of exception before? I'm getting this  
> > > > when running the automated tests for the node\_elastical project, but I can  
> > > > also repeat it in my browser.
> > > > 
> > > > org.elasticsearch.indices.TypeMissingException: [elastical-test-bulk]  
> > > > type[\_all] missing  
> > > > at  
> > > > org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:101)  
> > > > at  
> > > > org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:65)  
> > > > at  
> > > > org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction$1.run(TransportShardSingleOperationAction.java:137)  
> > > > at  
> > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> > > > at  
> > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> > > > at java.lang.Thread.run(Thread.java:680)
> > > > 
> > > > and via a browser:
> > > > 
> > > > [http://localhost:9200/elastical-test-bulk/post/bar](http://localhost:9200/elastical-test-bulk/post/bar)
> > > > 
> > > > - returns - {"\_index":"elastical-test-bulk","\_type":"post","\_id":"bar","\_version":14,  
> > > > "\_source" : {"c":"c","d":"d"}}
> > > > 
> > > > [http://localhost:9200/elastical-test-bulk/\_all/bar](http://localhost:9200/elastical-test-bulk/_all/bar)
> > > > 
> > > > - returns - {"error":"TypeMissingException[[elastical-test-bulk]  
> > > > type[\_all] missing]","status":404}
> > > > 
> > > > I'm running Elasticsearch Version: 0.16.1 (2011-05-12T17:19:28), JVM:  
> > > > 17.1-b03-307
> > > > 
> > > > --  
> > > > Richard Marr
> > 
> > --  
> > Richard Marr

--  
Richard Marr

---

<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:43am UTC](https://discuss.elastic.co/t/typemissingexception-type--all-missing/6300/6 "2017-07-06T03:43:24Z")

</div>


