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

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 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

HTH

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 8 oct. 2013 à 23:50, Dennis 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 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

@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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 8 oct. 2013 à 23:50, Dennis <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 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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.