# Can't fine 'admin()' method in new ElasticSearch API

**URL:** https://discuss.elastic.co/t/cant-fine-admin-method-in-new-elasticsearch-api/13881
**Category:** Elasticsearch
**Created:** [October 8, 2013, 9:48pm UTC](https://discuss.elastic.co/t/cant-fine-admin-method-in-new-elasticsearch-api/13881 "2013-10-08T21:48:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dennis](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dennis](https://discuss.elastic.co/u/Dennis)
#### Post date: [October 8, 2013, 9:48pm UTC](https://discuss.elastic.co/t/cant-fine-admin-method-in-new-elasticsearch-api/13881/1 "2013-10-08T21:48:47Z")

</div>

In a 19.6 dependent version, I have this line:

if (!client.getClient().admin().indices().prepareExists(name).execute().  
actionGet().exists()) {blah;}

This is line 845 in my file. I get these errors:

[ERROR]  
T extends Object declared in class Class  
/home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main/  
java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[711,35] error:cannot find symbol  
[ERROR] variable result of type GetResponse  
/home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main/  
java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[845,28] error:cannot find symbol

In searching through the online [ESearch.com](http://ESearch.com) search engine , I cannot find  
the admin api for the current version of ESearch.

Do I need to write that line differently?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Dennis](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dennis](https://discuss.elastic.co/u/Dennis)
#### Post date: [October 8, 2013, 9:50pm UTC](https://discuss.elastic.co/t/cant-fine-admin-method-in-new-elasticsearch-api/13881/2 "2013-10-08T21:50:02Z")

</div>

Sorry, Forgot to say that I'm compiling against ESearch 90..5 now.

On Tuesday, October 8, 2013 2:48:47 PM UTC-7, Dennis wrote:

> In a 19.6 dependent version, I have this line:
> 
> if (!client.getClient().admin().indices().prepareExists(name).execute().  
> actionGet().exists()) {blah;}
> 
> This is line 845 in my file. I get these errors:
> 
> [ERROR]  
> T extends Object declared in class Class  
> /home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main/  
> java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[711,35] error:cannot find symbol  
> [ERROR] variable result of type GetResponse  
> /home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main/  
> java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[845,28] error:cannot find symbol
> 
> In searching through the online [ESearch.com](http://ESearch.com) search engine , I cannot find  
> the admin api for the current version of ESearch.
> 
> Do I need to write that line differently?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [October 8, 2013, 9:52pm UTC](https://discuss.elastic.co/t/cant-fine-admin-method-in-new-elasticsearch-api/13881/3 "2013-10-08T21:52:19Z")

</div>

You need to replace exists() with isExists() I guess.

HTH

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

Le 8 oct. 2013 à 23:50, Dennis [gearond@gmail.com](mailto:gearond@gmail.com) a écrit :

> Sorry, Forgot to say that I'm compiling against ESearch 90..5 now.
> 
> On Tuesday, October 8, 2013 2:48:47 PM UTC-7, Dennis wrote:  
> In a 19.6 dependent version, I have this line:
> 
> if (!client.getClient().admin().indices().prepareExists(name).execute().actionGet().exists()) {blah;}
> 
> This is line 845 in my file. I get these errors:
> 
> [ERROR]  
> T extends Object declared in class Class  
> /home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main/java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[711,35] error: cannot find symbol  
> [ERROR] variable result of type GetResponse  
> /home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main/java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[845,28] error: cannot find symbol
> 
> In searching through the online [ESearch.com](http://ESearch.com) search engine , I cannot find the admin api for the current version of ESearch.
> 
> Do I need to write that line differently?
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Dennis](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dennis](https://discuss.elastic.co/u/Dennis)
#### Post date: [October 8, 2013, 10:06pm UTC](https://discuss.elastic.co/t/cant-fine-admin-method-in-new-elasticsearch-api/13881/4 "2013-10-08T22:06:06Z")

</div>

@David Pilato You're right, I just found that also and was going to put it  
here. Quick response on your part, and thank you.

On Tuesday, October 8, 2013 2:52:19 PM UTC-7, David Pilato wrote:

> You need to replace exists() with isExists() I guess.
> 
> HTH
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 8 oct. 2013 à 23:50, Dennis \<[gea...@gmail.com](mailto:gea...@gmail.com) \<javascript:\>\> a écrit :
> 
> Sorry, Forgot to say that I'm compiling against ESearch 90..5 now.
> 
> On Tuesday, October 8, 2013 2:48:47 PM UTC-7, Dennis wrote:
> 
> > In a 19.6 dependent version, I have this line:
> > 
> > if (!client.getClient().admin().indices().prepareExists(name).execute().  
> > actionGet().exists()) {blah;}
> > 
> > This is line 845 in my file. I get these errors:
> > 
> > [ERROR]  
> > T extends Object declared in class Class  
> > /home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main  
> > /java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[711,35] error:cannot find symbol  
> > [ERROR] variable result of type GetResponse  
> > /home/gearond/Documents/dev/NEW\_DEVELOPMENT/Kwince/codeBase/osem/src/main  
> > /java/org/kwince/contribs/osem/dao/OsemManagerImpl.java:[845,28] error:cannot find symbol
> > 
> > In searching through the online [ESearch.com](http://ESearch.com) search engine , I cannot  
> > find the admin api for the current version of ESearch.
> > 
> > Do I need to write that line differently?
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:13am UTC](https://discuss.elastic.co/t/cant-fine-admin-method-in-new-elasticsearch-api/13881/5 "2017-07-06T02:13:15Z")

</div>


