1/ yes. If you have an elasticsearch.yml file in your classpath under /, it 
will be used.
Otherwise, defaults are used.

2/ A NodeClient knows where all shards live. It means that it will route 
directly your requests to the right nodes. 


HTH

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 16 juin 2014 à 04:29, gitted <[email protected]> a écrit :

1. Newbie question, but when I use an elastic search client (java client), do I 
put the elasticsearch.yml file in my /resources i.e classpath?

I ran my java app w/o the .yml file and it worked fine when I indexed to ES, I 
guess by default it connects to the default ES port?


2.  What I don't understand, when creating a client, why is there even an 
option to have this client be part of the cluster?  I mean you are creating a 
client using the nodeBuilder, what is the reason for this?  My guess is the 
code is re-used so you don't have to repeat things internally?

Thanks.
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c87213d6-02c5-4c76-b115-14a2ebeceeaf%40googlegroups.com.
For more options, visit 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/309D98F8-3FA5-4899-9E5F-4CACE8376941%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to