I'm using the below code to get a client connection to run a ES query using
the Java API.
However this expensive object creation takes too much of time and and i'm
not sure if this object is thread-safe. If it isn't thread-safe then should
i be using a connection pool for client objects or is there another way to
get and cache connections?
I'm using the below code to get a client connection to run a ES query using
the Java API.
However this expensive object creation takes too much of time and and i'm not
sure if this object is thread-safe. If it isn't thread-safe then should i be
using a connection pool for client objects or is there another way to get and
cache connections?
I'm using the below code to get a client connection to run a ES query
using the Java API.
However this expensive object creation takes too much of time and and i'm
not sure if this object is thread-safe. If it isn't thread-safe then should
i be using a connection pool for client objects or is there another way to
get and cache connections?
Thanks David. Yes i'm using Spring along with ANTLR.
On Tuesday, January 22, 2013 10:16:31 AM UTC-6, David Pilato wrote:
Yes. It's threadsafe. Use one and only one Client in your JVM.
Are you using Spring BTW?
Le 22 janvier 2013 à 17:08, john <john2...@gmail.com <javascript:>> a
écrit :
Hi,
I'm using the below code to get a client connection to run a ES query
using the Java API.
However this expensive object creation takes too much of time and and i'm
not sure if this object is thread-safe. If it isn't thread-safe then should
i be using a connection pool for client objects or is there another way to
get and cache connections?
Shairon, i'm calling the execute().actionget() on the search request
builder.
On Tuesday, January 22, 2013 10:24:56 AM UTC-6, Shairon Toledo wrote:
Is not missing shoot the request builder with
..setQuery(query).execute().actionGet();
On Tue, Jan 22, 2013 at 2:16 PM, David Pilato <da...@pilato.fr<javascript:>
wrote:
**
Yes. It's threadsafe. Use one and only one Client in your JVM.
Are you using Spring BTW?
Le 22 janvier 2013 à 17:08, john <john2...@gmail.com <javascript:>> a
écrit :
Hi,
I'm using the below code to get a client connection to run a ES query
using the Java API.
However this expensive object creation takes too much of time and and
i'm not sure if this object is thread-safe. If it isn't thread-safe then
should i be using a connection pool for client objects or is there another
way to get and cache connections?
I'm using the below code to get a client connection to run a ES query using the Java API.
However this expensive object creation takes too much of time and and i'm not sure if this object is thread-safe. If it isn't thread-safe then should i be using a connection pool for client objects or is there another way to get and cache connections?
I'm using the below code to get a client connection to run a ES query
using the Java API.
However this expensive object creation takes too much of time and and
i'm not sure if this object is thread-safe. If it isn't thread-safe then
should i be using a connection pool for client objects or is there another
way to get and cache connections?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.