TypeMissingException: type[_all] missing


(Richard Marr) #1

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

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

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


(Shay Banon) #2

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 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

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

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) #3

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 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.comwrote:

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

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

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


(Shay Banon) #4

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.comwrote:

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 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.comwrote:

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

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

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) #5

That's worth knowing. Thanks.

On 7 January 2012 19:41, Shay Banon 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.comwrote:

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 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.comwrote:

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

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

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


(system) #6