I'm using the java api and for searching I'd like to know whether I
can use the same client for every search request that comes through,
or do I need to create a new client for each request?
Namely, is the client thread safe for its given request?
Then how does this tie in with the OperationThreaded described here:
You should use the same client for all requests, its thread safe. The
operation threaded for search request controls how the search is executed on
a node, and usually not really relevant for remote clients.
The realtime flag for get request controls if "realtime" get will be used or
not (by default, realtime get is enabled, and you can get a document once
indexed regardless of the refresh interval of the index or if it was
refreshed or not).
I'm using the java api and for searching I'd like to know whether I
can use the same client for every search request that comes through,
or do I need to create a new client for each request?
Namely, is the client thread safe for its given request?
Then how does this tie in with the OperationThreaded described here:
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.