# Problem connecting to elastic search V-0.90.5 with "elasticsearch-0.90.12" jar in Java

**URL:** <https://discuss.elastic.co/t/problem-connecting-to-elastic-search-v-0-90-5-with-elasticsearch-0-90-12-jar-in-java/16612>\
**Category:** Elasticsearch\
**Created:** [March 26, 2014, 1:39pm UTC](https://discuss.elastic.co/t/problem-connecting-to-elastic-search-v-0-90-5-with-elasticsearch-0-90-12-jar-in-java/16612 "2014-03-26T13:39:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_2](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@Raj\_2](https://discuss.elastic.co/u/Raj_2)\
**Post date:** [March 26, 2014, 1:39pm UTC](https://discuss.elastic.co/t/problem-connecting-to-elastic-search-v-0-90-5-with-elasticsearch-0-90-12-jar-in-java/16612/1 "2014-03-26T13:39:24Z")

</div>

HI,  
I am working with elastic search version 0.90.5. I was able to query  
elastic search with client version 0.90.5. But when I try to upgrade the  
client jar to 0.90.12 it cannot query from it. It throws me an error.

Exception in thread "main"  
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to  
execute phase [query], all shards failed; shardFailures  
{[U-TIXYeuTRCkwaODFI5hpg][guest][1]: SearchParseException[[guest][1]:  
from[0],size[100]: Parse Failure [Failed to parse source  
[{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]];  
nested: SearchParseException[[guest][1]: from[0],size[100]: Parse Failure  
[No parser for element [post\_filter]]];  
}{[U-TIXYeuTRCkwaODFI5hpg][guest][0]: SearchParseException[[guest][0]:  
from[0],size[100]: Parse Failure [Failed to parse source  
[{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]];  
nested: SearchParseException[[guest][0]: from[0],size[100]: Parse Failure  
[No parser for element [post\_filter]]];  
}{[U-TIXYeuTRCkwaODFI5hpg][guest][3]: SearchParseException[[guest][3]:  
from[0],size[100]: Parse Failure [Failed to parse source  
[{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]];  
nested: SearchParseException[[guest][3]: from[0],size[100]: Parse Failure  
[No parser for element [post\_filter]]];  
}{[U-TIXYeuTRCkwaODFI5hpg][guest][2]: SearchParseException[[guest][2]:  
from[0],size[100]: Parse Failure [Failed to parse source  
[{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]];  
nested: SearchParseException[[guest][2]: from[0],size[100]: Parse Failure  
[No parser for element [post\_filter]]];  
}{[U-TIXYeuTRCkwaODFI5hpg][guest][4]: SearchParseException[[guest][4]:  
from[0],size[100]: Parse Failure [Failed to parse source  
[{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]];  
nested: SearchParseException[[guest][4]: from[0],size[100]: Parse Failure  
[No parser for element [post\_filter]]]; }  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:272)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onFailure(TransportSearchTypeAction.java:224)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:205)  
at  
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
at java.lang.Thread.run(Thread.java:722)

My question is simple.  
Can I use elasticsearch-0.90.12.jar to query elastic search v0.90.5 cluster?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8e11d27f-86e4-4dfd-a21a-0ee93af6a910%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8e11d27f-86e4-4dfd-a21a-0ee93af6a910%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 26, 2014, 1:43pm UTC](https://discuss.elastic.co/t/problem-connecting-to-elastic-search-v-0-90-5-with-elasticsearch-0-90-12-jar-in-java/16612/2 "2014-03-26T13:43:44Z")

</div>

No you can't.

But your error is something else.  
Do you send direct JSON with the transport client?

If so, don't use post\_filter which does not exist before 1.0.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 26 mars 2014 à 14:39:29, Raj ([rajagopal.ceg@gmail.com](mailto:rajagopal.ceg@gmail.com)) a écrit:

HI,  
I am working with elastic search version 0.90.5. I was able to query elastic search with client version 0.90.5. But when I try to upgrade the client jar to 0.90.12 it cannot query from it. It throws me an error.

Exception in thread "main" org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[U-TIXYeuTRCkwaODFI5hpg][guest][1]: SearchParseException[[guest][1]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]]; nested: SearchParseException[[guest][1]: from[0],size[100]: Parse Failure [No parser for element [post\_filter]]]; }{[U-TIXYeuTRCkwaODFI5hpg][guest][0]: SearchParseException[[guest][0]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]]; nested: SearchParseException[[guest][0]: from[0],size[100]: Parse Failure [No parser for element [post\_filter]]]; }{[U-TIXYeuTRCkwaODFI5hpg][guest][3]: SearchParseException[[guest][3]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]]; nested: SearchParseException[[guest][3]: from[0],size[100]: Parse Failure [No parser for element [post\_filter]]]; }{[U-TIXYeuTRCkwaODFI5hpg][guest][2]: SearchParseException[[guest][2]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]]; nested: SearchParseException[[guest][2]: from[0],size[100]: Parse Failure [No parser for element [post\_filter]]]; }{[U-TIXYeuTRCkwaODFI5hpg][guest][4]: SearchParseException[[guest][4]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"post\_filter":{"or":{"filters":[{"regexp":{"FirstName.firstname":"michael"}}]}}}]]]; nested: SearchParseException[[guest][4]: from[0],size[100]: Parse Failure [No parser for element [post\_filter]]]; }  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:272)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onFailure(TransportSearchTypeAction.java:224)  
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:205)  
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
at java.lang.Thread.run(Thread.java:722)

## My question is simple. Can I use elasticsearch-0.90.12.jar to query elastic search v0.90.5 cluster?

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8e11d27f-86e4-4dfd-a21a-0ee93af6a910%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8e11d27f-86e4-4dfd-a21a-0ee93af6a910%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5332d990.436c6125.fe0d%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5332d990.436c6125.fe0d%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:40am UTC](https://discuss.elastic.co/t/problem-connecting-to-elastic-search-v-0-90-5-with-elasticsearch-0-90-12-jar-in-java/16612/3 "2017-07-06T01:40:36Z")

</div>


