getSettings from Java API


(Alexandre) #1

Hi !

Is the getSettings API available for JAVA somewhere ?
Something like
client.admin().indices().prepareGetSettings("myindexName") ....

I can't find it in the source but I know it exists in REST.

I need it to figure out existing Analyzer definitions and Analyzer
Aliases on a specific index before putting some new ones.

Thanks in advance.

Alex.


(Shay Banon) #2

Here is how its executed on the REST layer using the java API:
https://github.com/elasticsearch/elasticsearch/blob/master/modules/elasticsearch/src/main/java/org/elasticsearch/rest/action/admin/indices/settings/RestGetSettingsAction.java
.

On Sun, Oct 23, 2011 at 1:40 AM, Alexandre azlist1@gmail.com wrote:

Hi !

Is the getSettings API available for JAVA somewhere ?
Something like
client.admin().indices().prepareGetSettings("myindexName") ....

I can't find it in the source but I know it exists in REST.

I need it to figure out existing Analyzer definitions and Analyzer
Aliases on a specific index before putting some new ones.

Thanks in advance.

Alex.


(system) #3